3 ms·
No, it only happens if you embed the type, a.i. the member is anonymous. http://golang.org/doc/effective_go.html#embedding http://golang.org/doc/effective_go.h
by 4ad 12y ago
No, it only happens if you embed the type, a.i. the member is anonymous.
http://golang.org/doc/effective_go.html#embedding http://golang.org/doc/effective_go.html#embedding
http://golang.org/ref/spec#Struct_types http://golang.org/ref/spec#Struct_types
Note that there's also interface embedding which is a different thing.
- eco 12y agoAh, that makes a lot more sense. Thank you for explaining.