Skip to content

Instantly share code, notes, and snippets.

@Qs-F
Created December 26, 2015 05:07
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 Qs-F/8ffd1d26431b6c6cc828 to your computer and use it in GitHub Desktop.
Save Qs-F/8ffd1d26431b6c6cc828 to your computer and use it in GitHub Desktop.
o3.go
package main
func main() {
s := &[]int{}
*s = append(*s, 2)
for _, v := range *s {
println(v)
}
t := &[]int{}
for _, v := range *t {
println(v)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment