Standard library / math
math.MaxInt
Architecture-dependent int bound; example output is for 64-bit uint/int. Expected stdout: '9223372036854775807\n'.
Formal Syntax & Structure
go syntaxgo
const MaxInt = 1<<(intSize-1) - 1Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(int(math.MaxInt))}