Created
May 11, 2016 15:55
-
-
Save timakin/4f9a338558a0b1e12226f02227a10915 to your computer and use it in GitHub Desktop.
map[string]interface{}{}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
test := make(map[string]interface{}) | |
test["test"] = "yoyo" | |
tetete(test) | |
input := map[string]interface{}{ | |
"Key1": 2, | |
"key3": nil, | |
"val": 2, | |
"val2": "str", | |
"val3": 4, | |
"test": "hyoooooooooooooooo", | |
} | |
tetete(input) | |
} | |
func tetete(args map[string]interface{}) { | |
fmt.Println(args["test"]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment