4 ms·
Struct embedding is sugar for type Foo struct { MyType MyType } myFoo.MyType.url So it would resolve myFoo.MyType1.url over myFoo.MyType2.Nest
by b_e_n_t_o_n 1y ago
Struct embedding is sugar for
type Foo struct {
MyType MyType
}
myFoo.MyType.url
So it would resolve myFoo.MyType1.url over myFoo.MyType2.NestedType.url