This commit is contained in:
Mark McGranaghan 2012-09-16 14:30:16 -07:00
parent dd455da020
commit 6ffc2477cd

View File

@ -10,7 +10,11 @@ func main() {
cEmptyPtr := new(Circle)
fmt.Println(cEmptyPtr)
fmt.Println(*cEmptyPtr)
cValue := Circle{x: 1, y: 2, r: 5}
fmt.Println(&cValue)
fmt.Println(cValue)
cOrdered := Circle{1, 2, 5}
fmt.Println(cOrdered)
}