Answers for "go variable default"

Go
4

go variable default

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