gofmt wat u know about it
This commit is contained in:
@@ -9,16 +9,16 @@ type Circle struct {
|
||||
}
|
||||
|
||||
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)
|
||||
cEmptyPtr := new(Circle)
|
||||
fmt.Println(cEmptyPtr)
|
||||
fmt.Println(*cEmptyPtr)
|
||||
|
||||
cOrdered := Circle{1, 2, 5}
|
||||
fmt.Println(cOrdered)
|
||||
cValue := Circle{x: 1, y: 2, r: 5}
|
||||
fmt.Println(&cValue)
|
||||
fmt.Println(cValue)
|
||||
|
||||
cOrdered := Circle{1, 2, 5}
|
||||
fmt.Println(cOrdered)
|
||||
}
|
||||
|
||||
// todo: add field access
|
||||
|
||||
Reference in New Issue
Block a user