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) }