Standard library / math
math.MaxInt32
Maximum representable int32 value; useful for bounds checks. Expected stdout: '2147483647\n'.
Formal Syntax & Structure
go syntaxgo
const MaxInt32 = 1<<31 - 1Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(int32(math.MaxInt32))}