...

/

Puzzle 2 Explanation: Map Type

Puzzle 2 Explanation: Map Type

Understand why you can get nil as your output.

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() {
var m map[string]int
fmt.Println(m["Hello"])
}

Explanation

The zero value for an uninitialized ...

Access this course and 1400+ top-rated courses and projects.