Skip to content

Instantly share code, notes, and snippets.

@timakin
Created May 11, 2016 15:55
Show Gist options
  • Save timakin/4f9a338558a0b1e12226f02227a10915 to your computer and use it in GitHub Desktop.
Save timakin/4f9a338558a0b1e12226f02227a10915 to your computer and use it in GitHub Desktop.
map[string]interface{}{}
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