switch 1

What does the following program print?
package main

func f() bool {
	return false
}

func main() {
	switch f()
	{
	case true:
		println(1)
	case false:
		println(0)
	}
}

Choices:

Answer: 1

Run it on Go play.

Key points: