Go Wiki: MethodSets
Practical official guidance on method sets and how they determine interface satisfaction for values and pointers.
Practical official guidance on method sets and how they determine interface satisfaction for values and pointers.
- Author: Go Team
- Authority: primary
- Kind: guide
- URL: https://go.dev/wiki/MethodSets
What it covers
- method set rules
- pointer vs value receiver behavior
- practical interface satisfaction examples
Why authoritative
Official Go wiki guidance for one of the highest-friction interface rules in practice.
Use when
- how do method sets work in Go
- why does this value not implement the interface in Go
- how do pointer receivers affect interface satisfaction in Go
Keywords
- method sets, interfaces, pointer receiver, value receiver, assignability