Skip to content

Glossary: Algorithms Beyond the Basics in Go

Flag

Also written: flags

One on/off option stored as its own bit, such as `giftWrap = 2`. Several flags live together in a bitmask.

Where the book teaches it

Related terms

BitmaskPower of two