2 ms·
oh and do it in Go* ... Good F'ing Luck . Go makes normal string operations tricky due to rune being an alias for int32, ranging a string gives []byte indexes
by maerF0x0 4y ago
oh and do it in Go* ... Good F'ing Luck .
Go makes normal string operations tricky due to rune being an alias for int32, ranging a string gives []byte indexes ...
https://go.dev/play/p/33jCwNG6Eu6 https://go.dev/play/p/33jCwNG6Eu6
- Tomis02 4y agoIt's a bit sucky but you can use the standard library function "utf8.DecodeRuneInString(a)".