If you know what the map type is, use a type assertion: for k, v := range variable.(map[string]interface{}) { //... }
If it could be one of several map types, use a type switch first. If you don't know anything about the map type, I don't know what you think you could do with it because you don't know what the data means. On Monday, July 10, 2017 at 7:27:24 PM UTC+2, Kiageng satria pamungkas wrote: > > How to do that? i recently figure how to iterate interface{} that stores > slice but not map using refelct > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.