Standard library / math

math.MinInt

Architecture-dependent int bound; example output is for 64-bit uint/int. Expected stdout: '-9223372036854775808\n'.

Formal Syntax & Structure

go syntaxgo
const MinInt    = -1 << (intSize - 1)

Working Example

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