Skip to content

Glossary: Go Basics

Zero value

Also written: zero values

The value a variable gets when you don't give one: `0` for numbers, `""` for strings, `false` for bools and `nil` for pointers, slices and maps.

Where the book teaches it

Related terms

nilvar