#how to call interface method as function

4 messages · Page 1 of 1 (latest)

ivory geyser
halcyon wedge
#

automatic method promotion to the pointer type does not apply to interface types

#

The method set of a pointer to a defined type T (where T is neither a pointer nor an interface) is the set of all methods declared with receiver *T or T.