Go Freedom Flashcards

Getting into Netflix

1
Q

Rune and Byte

A

// 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.
type byte = uint8

// 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.
type rune = int32

How well did you know this?
1
Not at all
2
3
4
5
Perfectly