In Golang variables declared without a corresponding initialization are zero-valued

Example:

package main

import "fmt"

func main() {

    var a int
    fmt.Println("Value of a is", a)

    var b float64
    fmt.Println("Value of b is", b)

    var c bool
    fmt.Println("Value of c is", c)
}
Output:
Value of a is 0
Value of b is 0
Value of c is false