Skip to content

EasyConceptGo language basics

What is the zero value in Go?

What a good answer covers

Every variable declared without an initial value gets a default: 0 for numbers, false for bool, "" for strings, and nil for pointers, slices, maps, channels, functions and interfaces.

More on Go language basics

Flashcards for this topic