Skip to content

Glossary: Algorithms Beyond the Basics in Go

Package-level variable

Also written: global variable

A variable declared outside any function, so every function in the package shares it. It can hold something like a memo map without passing it as an argument.

Where the book teaches it

Related terms

Memo map