Go methods and receivers
A method is a function associated with a receiver type. The receiver gives the method access to a value or pointer of that type, allowing related behavior to be organized with the data it operates on.
Minimal example
type Counter struct {
Count int
}
func (c *Counter) Increment() {
c.Count++
}