Skip to content

Glossary: Data Structures and Algorithms in Go

Zero value

Also written: zero values

The default value Go gives a variable or field that was not set: 0 for numbers, "" for strings, nil for slices, maps and pointers. A missing map key reads as the zero value.

Where the book teaches it

Related terms

nilHash map