How do method sets work in Go, and why can a value type sometimes fail to satisfy an interface that a pointer type satisfies?

Last updated 20 June 2026

  • A method set is the methods callable on a type. T has only value-receiver methods, while *T has both value- and pointer-receiver methods.

  • If an interface method uses a pointer receiver, only *T satisfies it, because a value stored in an interface isn't addressable.

  • Go auto-takes the address when calling pointer methods on addressable variables, which hides the rule until you assign to an interface.

  • https://go.dev/doc/faq
  • https://www.scribd.com/document/714007792/course-outline-learn-to-code-go-v3-18-0
  • https://archive.org/stream/TheWayToGo/The_Way_To_Go_djvu.txt
All Golang interview questions