Skip to content

Instantly share code, notes, and snippets.

@skelterjohn
Created May 23, 2011 00:32
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 skelterjohn/986048 to your computer and use it in GitHub Desktop.
Save skelterjohn/986048 to your computer and use it in GitHub Desktop.
package main
import "fmt"
type MySlice []int
func main() {
s := MySlice{1,2,3,4}
for i, v := range s {
fmt.Println(i, v)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment