more
This commit is contained in:
parent
dd455da020
commit
6ffc2477cd
@ -10,7 +10,11 @@ func main() {
|
|||||||
cEmptyPtr := new(Circle)
|
cEmptyPtr := new(Circle)
|
||||||
fmt.Println(cEmptyPtr)
|
fmt.Println(cEmptyPtr)
|
||||||
fmt.Println(*cEmptyPtr)
|
fmt.Println(*cEmptyPtr)
|
||||||
|
|
||||||
cValue := Circle{x: 1, y: 2, r: 5}
|
cValue := Circle{x: 1, y: 2, r: 5}
|
||||||
fmt.Println(&cValue)
|
fmt.Println(&cValue)
|
||||||
fmt.Println(cValue)
|
fmt.Println(cValue)
|
||||||
|
|
||||||
|
cOrdered := Circle{1, 2, 5}
|
||||||
|
fmt.Println(cOrdered)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user