2 ms·
BTW in go a string can be cast to []byte like this: []byte(aString) it returns the utf-8 bytes, casting to []rune gives unicode codepoints.
by EdiX 14y ago
BTW in go a string can be cast to []byte like this:
[]byte(aString)
it returns the utf-8 bytes, casting to []rune gives unicode codepoints.