I donβt understand why the first result is false and the second is true.
Any help would be appreciated.
func main() { var i interface{} i = uint64(0) fmt.Println("[1] ", reflect.TypeOf(i), i == 0) i = 0 fmt.Println("[2] ", reflect.TypeOf(i), i == 0) var n uint64 = 32 fmt.Println("[3] ", reflect.TypeOf(n), n == 32) }
Try it here Go to the site
go
Alex.Li
source share