Puzzle 24 Explanation: Go Flag
Understand how types work.
We'll cover the following...
We'll cover the following...
Try it yourself
Try executing the code below to see the result for yourself.
Go (1.16.5)
package mainimport ("fmt")type Flag intfunc main() {var i interface{} = 3f := i.(Flag)fmt.Println(f)}
Explanation
Even ...