github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/staticcheck/testdata/synthetic.go (about) 1 package pkg 2 3 import "regexp" 4 5 // must be a basic type to trigger SA4017 (in case of a test failure) 6 type T string 7 8 func (T) Fn() {} 9 10 // Don't get confused by methods named init 11 func (T) init() {} 12 13 // this will become a synthetic init function, that we don't want to 14 // ignore 15 var _ = regexp.MustCompile("(") // MATCH /error parsing regexp/