I am new to Go and now I want to get an arbitrary item from a map; what\'s the idiomatic way to do that? I can only think of something like this:
func get_some_k
Here is a more generic version, although it may be less efficient:
keys := reflect.ValueOf(mapI).MapKeys() return keys[rand.Intn(len(keys))].Interface()
https://play.golang.org/p/0uvpJ0diG4e