Skip to content

Glossary: Software Design Patterns in Go

Pointer receiver

Also written: pointer receivers

A method declared on a pointer type, like `func (b *OrderBuilder) Add(...)`, so the call changes the original value instead of a copy. It suits builders, repositories and the event bus, which must keep their changes.

Where the book teaches it

Related terms

Method chaining