1 2 3 4 5 6 7 8 9 10 11 12
package main import ( "fmt" ) func main () { var i int = 9223372036854775807; i = i + 1; fmt.Println(i); // ah so Go doesn't specially handle overflows }