Skip to content

Glossary: Algorithms Beyond the Basics in Go

Decorator

Also written: @cache

In some languages, a function that wraps yours to add behavior such as a memo. Go has none, so you write the memo map yourself.

Where the book teaches it

Related terms

Memo mapMemoization