Skip to content

Glossary: Algorithms Beyond the Basics in Go

Bit operators

Also written: bitwise operators

Go operators (`&`, `|`, `^`, `&^`, `<<`, `>>`) that work on each column of bits separately. They let you test, set, clear and shift bits.

Where the book teaches it

Related terms

BitmaskXOR (exclusive or)Shift left / shift right&^ (and not)