Standard library / math/bits

bits.UintSize

Number of bits in uint, either 32 or 64 on supported Go architectures. Expected stdout: '64\n'.

Formal Syntax & Structure

go syntaxgo
const UintSize = uintSize

Working Example

Example Snippetgo
package main
import (  "fmt"  "math/bits")
func main() {  fmt.Println(bits.UintSize)}
Go Reference