Standard library / math

math.MinInt64

Minimum representable int64 value; useful for bounds checks. Expected stdout: '-9223372036854775808\n'.

Formal Syntax & Structure

go syntaxgo
const MinInt64  = -1 << 63

Working Example

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