From 6ffc2477cd75b99d9bdd8a5a3b05e8676127d76b Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 16 Sep 2012 14:30:16 -0700 Subject: [PATCH] more --- 31-structs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/31-structs.go b/31-structs.go index 899d14f..624d904 100644 --- a/31-structs.go +++ b/31-structs.go @@ -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) }