Either pass around the pointer to your struct or use a dedicated interface to alter the struct contents. Examples of each here <https://play.golang.org/p/fVQrg2C802> and there <https://play.golang.org/p/fVQrg2C802>.
Le mardi 11 avril 2017 15:22:41 UTC+2, Th3x0d3r a écrit : > > Hey there ! > > How can i set the value of an interface{} parameter from other interface{} > source > > Playground : https://play.golang.org/p/utwO2Ru4Eq > > Output expected: > > Val 1: &{XML} > Val 2: &{XML} > > > Thanks > -- 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.