Byte is uint8
-
byte
-
byte
is just an alias foruint8
package main
import (
"fmt"
)
func main() {
var b byte = 152
var u uint8 = 152
fmt.Println(b == u)
}
true
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
byte
byte
is just an alias for uint8
package main
import (
"fmt"
)
func main() {
var b byte = 152
var u uint8 = 152
fmt.Println(b == u)
}
true