Standard library / strconv
strconv.IntSize
Constant giving the number of bits in int and uint (32 or 64 depending on architecture). Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const IntSize = intSizeWorking Example
Example Snippetgo
package main
import ( "fmt" "strconv")
func main() { fmt.Println(strconv.IntSize == 32 || strconv.IntSize == 64)}