Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: