...

/

Puzzle 4 Explanation: Go Types

Puzzle 4 Explanation: Go Types

Understand how nil can have a type.

We'll cover the following...

Try it yourself

Try executing the code below to see the result for yourself.

Press + to interact
package main
import (
"fmt"
)
func main() {
n := nil
fmt.Println(n)
}

Explanation

In Go, nil is not a type ...