Skip to content

Instantly share code, notes, and snippets.

@yanmhlv
Created May 11, 2016 15:09
Show Gist options
  • Save yanmhlv/b6388947826e78d620cc560d43f9c5da to your computer and use it in GitHub Desktop.
Save yanmhlv/b6388947826e78d620cc560d43f9c5da to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
mydict := map[string]int{
"1": 1,
"2": 2,
"3": 3,
}
for i := 0; i < 10; i++ {
for k := range mydict {
fmt.Println(k)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment