less
This commit is contained in:
parent
3babe35fcd
commit
76804c3097
@ -31,7 +31,7 @@ func main() {
|
||||
fmt.Println(s.name)
|
||||
|
||||
// You can also use dots with struct pointers - the
|
||||
// pointer will be automatically dereferenced.
|
||||
// pointers are automatically dereferenced.
|
||||
sp := &s
|
||||
fmt.Println(sp.age)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user