Answers for "Go's Declaration Syntax"

Go
4

go declaration syntax

Variables declared without an explicit initial value are given their zero value.

The zero value is:

0 for numeric types,
false for the boolean type, and
"" (the empty string) for strings.
Posted by: Guest on January-12-2021

Browse Popular Code Answers by Language