Skip to content

Glossary: Software Design Patterns in Go

Method chaining

Also written: chained methods, chaining

Calling methods in a row, each returning the same pointer so the next call can follow on. `OrderBuilder` uses it: `NewOrderBuilder().ForCustomer(ana).Add(...).Build()`.

Where the book teaches it

Related terms

Builder