Re: [go-nuts] Casting Back from nested Struct

2018-10-10 Thread Marvin Renich
* Chris Hopkins [181010 12:04]: > Hi, > I appreciate this is not possible, but realised I never understood why (so > have just been working around it). > Example code at: > https://play.golang.org/p/BgFL9T0KiC7 > > I can create a struct with other structs as a member. I then get all the > field

Re: [go-nuts] Casting Back from nested Struct

2018-10-10 Thread Burak Serdar
On Wed, Oct 10, 2018 at 10:04 AM Chris Hopkins wrote: > > Hi, > I appreciate this is not possible, but realised I never understood why (so > have just been working around it). > Example code at: > https://play.golang.org/p/BgFL9T0KiC7 > > I can create a struct with other structs as a member. I th

[go-nuts] Casting Back from nested Struct

2018-10-10 Thread Chris Hopkins
Hi, I appreciate this is not possible, but realised I never understood why (so have just been working around it). Example code at: https://play.golang.org/p/BgFL9T0KiC7 I can create a struct with other structs as a member. I then get all the fields and methods associated with that member. But yo