SyntaxFix
Write A Post
Hire A Developer
Questions
A Type agnostic solution:
for _, key := range reflect.ValueOf(yourMap).MapKeys() { value := s.MapIndex(key).Interface() fmt.Println("Key:", key, "Value:", value) }