In Golang
why var y = int(0.1) have a error but x := 0.1; y := int(x) is ok?
var y = int(0.1)
x := 0.1; y := int(x)