Created
December 8, 2016 08:07
-
-
Save incfly/2f1bc802f229390d7b7037fe7797091f to your computer and use it in GitHub Desktop.
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 | |
import "fmt" | |
type Person struct{ | |
Name string | |
Age int | |
} | |
func main() { | |
pp := []* Person{ {"A", 12} } | |
var p *Person | |
p = &Person{"BC", 3} | |
fmt.Println(pp) | |
fmt.Println(p) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment