☰
Debian Codegraph
@
2026.2.1-1
2026.1-4
2026.1-3
/
/
staticcheck
/
sa1010
/
testdata
/
go1.0
/
checkStdlibUsageRegexpFindAll
/
checkStdlibUsageRegexpFindAll.go
☽
☼
staticcheck/sa1010/testdata/go1.0/checkStdlibUsageRegexpFindAll/checkStdlibUsageRegexpFindAll.go
code
plain
raw
Expat
2016-2017 Dominik Honnef
debian/copyright
1
package pkg
2
3
import "regexp"
4
5
func fn() {
6
var r *regexp.Regexp
7
_ = r.FindAll(nil, 0) //@ diag(`calling a FindAll method with n == 0 will return no results`)
8
}
9
10
func fn2() {
11
regexp.MustCompile("foo(").FindAll(nil, 0) //@ diag(`calling a FindAll`)
12
}