3 ms·
Actually, go has supported ranging over code points of a string since Go 1 [0], and has unicode/utf8.DecodeRuneInString which produces the same iteration seque
by infogulch 10y ago
Actually, go has supported ranging over code points of a string since Go 1 [0], and has unicode/utf8.DecodeRuneInString which produces the same iteration sequence as range.
[0]: https://blog.golang.org/strings https://blog.golang.org/strings