About Int

In the system of 32 bit, Int is Int32.

In the system of 64 bit, Int is Int64.

So Int always equals the processor bit-size.

package main

import (
    "fmt"
    "runtime"
    "strconv"
    "math"
)

func main() {
    fmt.Println(runtime.Compiler, runtime.GOARCH, runtime.GOOS)
    fmt.Println(strconv.IntSize)
    maxInt := int(math.MaxInt64)
    fmt.Println("maxInt:", maxInt)
    maxInt64 := math.MaxInt64
    fmt.Println("maxInt64:", maxInt64)
}

Output

gc amd64 linux
64
maxInt: 9223372036854775807
maxInt64: 9223372036854775807

Go Playground