Skip to content

Glossary: Algorithms Beyond the Basics in Go

Memo map

Also written: memo

A map from a call's inputs to its saved answer. Go has no built-in cache, so you write it by hand, often as a package-level variable.

Where the book teaches it

Related terms

MemoizationComma-okDecoratorPackage-level variable