On 7 Aug 2017 20:35, "Gert" <gert.cuyk...@gmail.com> wrote:
On Monday, August 7, 2017 at 5:59:15 PM UTC+2, rog wrote: > > What is this supposed to do? What does it do if the value > isn't an integer? Same error as you do int("4") Um, have you tried that? It's a compiler error. > Are you thinking that it would be the same as fmt.Println("value:", > r.Interface().(int)) ? > Nope more that it acts as a basic type like a int(4) so that reflect is the same as any other basic types float int byte string etc What do you mean by that? The same in what respects? -- 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.