Created
December 26, 2015 05:07
-
-
Save Qs-F/8ffd1d26431b6c6cc828 to your computer and use it in GitHub Desktop.
o3.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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