...

/

Puzzle 24 Explanation: Go Flag

Puzzle 24 Explanation: Go Flag

Understand how types work.

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"
)
type Flag int
func main() {
var i interface{} = 3
f := i.(Flag)
fmt.Println(f)
}

Explanation

Even ...