Skip to content

Instantly share code, notes, and snippets.

@Qs-F
Created December 26, 2015 04:48
Show Gist options
  • Save Qs-F/39b5ff8ca3ece7c76958 to your computer and use it in GitHub Desktop.
Save Qs-F/39b5ff8ca3ece7c76958 to your computer and use it in GitHub Desktop.
x.go
package main
func main() {
var s *[]int
*s = append(*s, 2)
for _, v := range *s {
println(v)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment