Comment on Strings, bytes, runes and characters in GoparentComments−masklinn12yTo find an index of a substring you need to scan the string, right. But once you have the byte index you can quickly jump to its position in the stringStop doing that and just get the bit of string you want in the first place?
Comments
Stop doing that and just get the bit of string you want in the first place?