4 lines
258 B
Go
4 lines
258 B
Go
y := x+1 // y is int, assuming declaration above
|
|
same := x == y // same declared as bool
|
|
p := &same // type of p is pointer to bool
|
|
pi := math.Floor(math.Pi) // math.Floor returns float64, so that is the type of pi
|