Ok, found it. I should have used the reflect.ValueOf... On Wednesday, May 29, 2019 at 12:53:13 PM UTC+3, Sotirios Mantziaris wrote: > > I did found out that the setter method has to accept a pointer to string. > I have a complete example now which unfortunately don't work correclty. > The value should change but it is emptied out. > > https://play.golang.org/p/OPZKltApEhF > > What am i missing? > > On Wednesday, May 29, 2019 at 10:46:32 AM UTC+3, Jan Mercl wrote: >> >> On Wed, May 29, 2019 at 9:42 AM Sotirios Mantziaris >> <[email protected]> wrote: >> >> > I am getting the nested "Name" struct but there are no methods to call. >> > What am i doing wrong (besides using reflection :))? >> >> The method has a pointer receiver: https://play.golang.org/p/qjhqSvhE9PL >> >
-- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e2eb5584-242c-4144-ad32-a42583ee8cfe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
