❮ int8
❯
- uint8
uint8
examples/uint8/uint8.go
package main import ( "fmt" "unsafe" ) func main() { var z uint8 = 254 fmt.Println(z) z++ fmt.Println(z) z++ fmt.Println(z) z-- fmt.Println(z) fmt.Println(unsafe.Sizeof(z)) }
254 255 0 255 1