Answers for "golang default value"

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
0

golang default keyword

break        default      func         interface    select
case         defer        go           map          struct
chan         else         goto         package      switch
const        fallthrough  if           range        type
continue     for          import       return       var
Posted by: Guest on October-02-2021

Browse Popular Code Answers by Language