cat $GOROOT/src/builtin/builtin.go
package builtin
type byte byte
byte is an alias for uint8 and is equivalent to uint8 in all ways.It is // used, by convention, to distinguish byte values from 8-bit unsigned // integer values.
Really: type byte = uint8 (see golang.org/issue/21601)
type rune rune
rune is an alias for int32 and is equivalent to int32 in all ways.
It is used, by convention, to distinguish character values from integer values.
Really: type rune = int32 (see golang.org/issue/21601)
有疑问加站长微信联系(非本文作者)