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
m.Match(`$_{$*_, $_: strings.Compare($s1, $_), $*_}`,
`$_{$*_, strings.Compare($s1, $_): $_, $*_}`).
Report(`don't use strings.Compare on hot path, change it to built-in operators`).
At(m["s1"])
test data:
func f() {
_ = map[int]int{
// doesn't match this
strings.Compare("", ""): 0,
}
}
The text was updated successfully, but these errors were encountered:
rule:
test data:
The text was updated successfully, but these errors were encountered: