-
-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The upstream position is that one should always use strings.Index when dealing with literals, and we don't want to offer a suggestion that goes against that. IndexByte has a small performance improvement over Index, but this should be addressed by improvements to strings.Index and the compiler. We could still recommend to use IndexByte when not using literals, but that would be entirely new code, not part of the existing check. It is not clear what to do for the bytes package, but it is probably best to err on the side of not making any suggestions. Closes gh-1007
- Loading branch information
Showing
5 changed files
with
0 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
quickfix/testdata/src/CheckStringsIndexByte/CheckStringsIndexByte.go
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
quickfix/testdata/src/CheckStringsIndexByte/CheckStringsIndexByte.go.golden
This file was deleted.
Oops, something went wrong.