So a := x.(*T) is the same as a := x.(T) ? Michael
> On 27 Jun 2016, at 23:33, Axel Wagner <axel.wagner...@googlemail.com> wrote: > > Hm? It's this syntax: > https://golang.org/ref/spec#Type_assertions > using *T as the type. > >> On Mon, Jun 27, 2016 at 11:08 PM, <michaelwain1...@gmail.com> wrote: >> Hi, >> >> Reading through gaoling spec regarding type assertions, in some code I've >> see type assertions like: >> a := x.(*T) >> >> i don't see a mention of that syntax in the spec, what is it doing? >> -- >> 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.