projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.1.1
/
staticcheck
/
testdata
/
src
/
checkStdlibUsageRegexpFindAll
/
checkStdlibUsageRegexpFindAll.go
1
package pkg
2
3
import "regexp"
4
5
func fn() {
6
var r *regexp.Regexp
7
_ = r.FindAll(nil, 0) //want `calling a FindAll method with n == 0 will return no results`
8
}
9
10
func fn2() {
11
regexp.MustCompile("foo(").FindAll(nil, 0) // want `calling a FindAll`
12
}