On Sat, Jul 25, 2020 at 10:09 AM chri...@surlykke.dk <christ...@surlykke.dk> wrote:
> Is this something I should have deduced from the language spec? https://golang.org/ref/spec#Address_operators """" For an operand x of type T, the address operation &x generates a pointer of type *T to x. The operand must be addressable, that is, either a variable, pointer indirection, or slice indexing operation; or a field selector of an addressable struct operand; or an array indexing operation of an addressable array. """" Note the 'pointer indirection'. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-WwxyEQ3TTuozCrLMBoDg15SsQ%3DFg2RPXCJ7s_5X2MQqQ%40mail.gmail.com.