Standard library / math
math.MaxInt8
Maximum representable int8 value; useful for bounds checks. Expected stdout: '127\n'.
Formal Syntax & Structure
go syntaxgo
const MaxInt8 = 1<<7 - 1Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(int8(math.MaxInt8))}