Standard library / math

math.MaxUint32

Maximum representable uint32 value; useful for bounds checks. Expected stdout: '4294967295\n'.

Formal Syntax & Structure

go syntaxgo
const MaxUint32 = 1<<32 - 1

Working Example

Example Snippetgo
package main
import (  "fmt"  "math")
func main() {  fmt.Println(uint32(math.MaxUint32))}
Go Reference