Skip to content

Glossary: Software Design Patterns in Go

Hook

Also written: hooks

The step a template method leaves for the caller to supply. In Go the simplest hook is a function passed in, such as `formatRow` in `makeReport`.

Where the book teaches it

Related terms

Template method