On Tue, Oct 30, 2018 at 8:39 AM, Jamie Clarkson <jnc7...@gmail.com> wrote: > Ah ok, sorry I don't want to waste your time getting into the nitty-gritty > of a hypothetical situation but are you meaning the > code for (say): > > func (u *_UserEdge) Nodes() _SliceN { > nodes := u.UserEdge.Nodes() // type []UserNode > return _SliceUserNode(nodes) > } > > ?
Yes, something along those lines. Ian > On Tuesday, October 30, 2018 at 3:19:42 PM UTC, Ian Lance Taylor wrote: >> >> On Tue, Oct 30, 2018 at 8:15 AM, Jamie Clarkson <jnc...@gmail.com> wrote: >> > >> > I'm not sure what you meant by conversion of non-interface to interface >> > types to handle results? I can see the usual conversions working fine >> > at >> > the call site for input parameters but the actual ShortestPath func >> > seems to >> > need to use interface throughout? >> >> I mean in converting the slice returned by Edge.Nodes to the >> implicitly generated slice interface type. >> >> Ian > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.