Skip to content

Instantly share code, notes, and snippets.

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