github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/simple/testdata/src/regexp-raw/regexp-raw.go (about) 1 package pkg 2 3 import "regexp" 4 5 func fn2() string { return "" } 6 7 func fn() { 8 x := "abc" 9 const y = "abc" 10 regexp.MustCompile(`\\.`) 11 regexp.MustCompile("\\.") // MATCH /should use raw string.+\.MustCompile/ 12 regexp.Compile("\\.") // MATCH /should use raw string.+\.Compile/ 13 regexp.Compile("\\.`") 14 regexp.MustCompile("(?m:^lease (.+?) {\n((?s).+?)\\n}\n)") 15 regexp.MustCompile("\\*/[ \t\n\r\f\v]*;") 16 regexp.MustCompile(fn2()) 17 regexp.MustCompile(x) 18 regexp.MustCompile(y) 19 }