strings
In Golang
stringis just a collection of bytes and can be accessed as a whole or as an array.A
runeis an int32 value that is used for representing a single Unicode code point, which is an integer value that is used for representing single Unicode characters.Although a rube is an int32 value, you cannot compare a rune with an int32 value.
Last updated