When variable is declared with no explicit value assigned to it, Go assigns a default zero value for its type:
false
for booleans0
for integers0.0
for floats""
for stringsnil
for pointers, functions, interfaces, slices, channels and maps0,0
for complex numbers (real and imaginary parts)
Examples:
It makes a code clearer, removes a source of bugs that may be possible in C and C++ programs.