How to Create a Byte Array in Golang
Go has integer types called byte and rune epithets for uint8 and int32 data types. In Go, there is no char data type. Instead, it uses byte and rune to represent character values. The []byte and string in Go are small headers pointing to data that have lengths suggesting how much data is present. The []byte has two lengths: The current length of the data. Capacity. A byte … Read more