You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace all strings.Index("some string", "ONE_CHARACTER_HERE") with strings.IndexByte("some string", 'ONE_CHARACTER_HERE') where it's possible (same situations for strings.LastIndex)
The text was updated successfully, but these errors were encountered:
julieqiu
changed the title
Replace strings.Index() with strings.IndexByte where it's possible
strings: replace strings.Index with strings.IndexByte
Aug 29, 2019
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputReplace all
strings.Index("some string", "ONE_CHARACTER_HERE")
withstrings.IndexByte("some string", 'ONE_CHARACTER_HERE')
where it's possible (same situations forstrings.LastIndex
)The text was updated successfully, but these errors were encountered: