3 ms·
For clarity (I know you know what a rune is but your description felt a little misleading imo): A rune is just an alias for int32. But it's context usually mea
by hnlmorg 9y ago
For clarity (I know you know what a rune is but your description felt a little misleading imo):
A rune is just an alias for int32. But it's context usually means unicode chars which are indeed multi-byte.
You can still use byte arrays (or "slice" if you're writing idiomatic Go, but that's another tangent again) too though.
Also "byte" in Go is another alias, but for int8. But that shouldn't come as a surprise to anyone :)
- throwaway2016a 9y agoThank you for the clarification. Your explanation will be helpful to people. I wasn't planning on going into that technical detail, I was focused more on typical usage.