Skip to content

Glossary: Data Structures and Algorithms in Go

Hash function

Also written: hash, hashing, hashed

A function that turns any key into a whole number, which a map uses to pick a bucket. The same key always gives the same number within one run.

Where the book teaches it

Related terms

BucketCollisionHash maphash/maphash