-1

Possible Duplicate:
Iterating over all the keys of a golang map

Could somebody having used go tell me how to look through all element of a map data structure, or it could not be traversed?

Community
  • 1
  • 1
shirley
  • 1,640
  • 4
  • 12
  • 19

1 Answers1

2
for key, value := range m { /* do stuff here */ }

This is a duplicate as nemo said.

Jeremy Wall
  • 23,907
  • 5
  • 55
  • 73