- int8
int8
examples/int8/int8.go
package main import ( "fmt" "unsafe" ) func main() { var z int8 = 126 fmt.Println(z) z++ fmt.Println(z) z++ fmt.Println(z) z-- fmt.Println(z) fmt.Println(unsafe.Sizeof(z)) }
126 127 -128 127 1
package main import ( "fmt" "unsafe" ) func main() { var z int8 = 126 fmt.Println(z) z++ fmt.Println(z) z++ fmt.Println(z) z-- fmt.Println(z) fmt.Println(unsafe.Sizeof(z)) }
126 127 -128 127 1