Skip to content

Instantly share code, notes, and snippets.

@shumon84
Last active October 3, 2018 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shumon84/a7bb1d128aab13258de363af8876d874 to your computer and use it in GitHub Desktop.
Save shumon84/a7bb1d128aab13258de363af8876d874 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
func main() {
arr := [10]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
for i, v := range arr {
fmt.Println(i, &v)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment