Predeclared type
Go uint8 type
Unsigned 8-bit integer, range 0 to 255. byte is an alias. Runtime arithmetic can wrap modulo 256. Example output: '0'.
Formal Syntax & Structure
go syntaxgo
uint8Working Example
Example Snippetgo
package main
import ( "fmt")
func main() { var level uint8 = 255 level++ fmt.Println(level)}