Predeclared type
Go int8 type
Signed 8-bit integer, range -128 to 127; useful for compact signed samples. Constant 128 cannot initialize this type. Example output: '-12'.
Formal Syntax & Structure
go syntaxgo
int8Working Example
Example Snippetgo
package main
import ( "fmt")
func main() { var temperature int8 = -12 fmt.Println(temperature)}