Re: [go-nuts] Pointer to Container Type

2017-04-19 Thread Ian Lance Taylor
On Wed, Apr 19, 2017 at 1:35 PM, dc0d wrote: > > In Go there is no way to pass a reference to an instance of the > container/enclosing type, to a function of an embedded type. What work > around do you use for this? Any idiomatic Go way? > > Currently I model the

[go-nuts] Pointer to Container Type

2017-04-19 Thread dc0d
In Go there is no way to pass a reference to an instance of the container/enclosing type, to a function of an embedded type. What work around do you use for this? Any idiomatic Go way? Currently I model the shared functionality using an interface. Then the implementation is another struct,