Standard library / math

math.MinInt8

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

Formal Syntax & Structure

go syntaxgo
const MinInt8   = -1 << 7

Working Example

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