On Wednesday, 11 August 2021 at 09:23:44 UTC+1 Brian Candler wrote: > v := Zoo{....} > Display1(v) # v is copied > vp := &Zoo > Display2(vp) # vp is copied > > Correction: vp := &v or vp := &Zoo{...}
> These are identical, consistent behaviours. > > So now onto "pointer to function". You are thinking like C. In Go there > is no meaningful "pointer to function", there are just "function values": > https://play.golang.org/p/Q6GogYU8f > > Correction: that got mangled in copy-paste, it should say https://play.golang.org/p/Q6GogYU8fLL -- 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/2e879bc2-b208-4ddc-b0ca-55fb7829b453n%40googlegroups.com.