In Go, byte is an alias for uint8. Both names mean the same unsigned 8-bit integer type. The name byte is useful when you are dealing with raw data, where each value represents one byte. in The Golang Official Documentation
package main
import "fmt"
func main() {
var value byte = 65
var same uint8 = value
fmt.Printf("%v %T\n", value, value)
fmt.Println(same)
}If you’ll run this, you’ll get
65 uint8
65value is declared as a byte and assigned directly to a uint8 variable named same. There is no conversion because these are two names for one type. %T prints uint8, which is the underlying type name Go displays for this alias.