Skip to content

Glossary: Go Beyond the Basics

zero value

Also written: zero values

The default value a variable or element has when nothing is set: 0 for numbers, `""` for strings, `false` for bools and `nil` for maps. A receive from a closed, empty channel gives one.

Where the book teaches it

Related terms

closenil map