- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MatchSimplePattern (0.15 sec)
-
src/cmd/internal/pkgpattern/pkgpattern.go
// and the pattern cmd/... matches it. func MatchPattern(pattern string) func(name string) bool { return matchPatternInternal(pattern, true) } // MatchSimplePattern returns a function that can be used to check // whether a given name matches a pattern, where pattern is a limited // glob pattern in which '...' means 'any string', with no other
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 16:43:40 UTC 2022 - 4.8K bytes - Viewed (0) -
src/cmd/internal/pkgpattern/pat_test.go
pattern net/... match net net/http not not/http not/net/http netchan ` func TestSimpleMatchPattern(t *testing.T) { testPatterns(t, "MatchSimplePattern", matchSimplePatternTests, func(pattern, name string) bool { return MatchSimplePattern(pattern)(name) }) } var treeCanMatchPatternTests = ` pattern ... match foo pattern net match net not net/http
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 16:43:40 UTC 2022 - 4.4K bytes - Viewed (0) -
src/cmd/covdata/covdata.go
} if *pkgpatflag != "" { pats := strings.Split(*pkgpatflag, ",") matchers := []func(name string) bool{} for _, p := range pats { if p == "" { continue } f := pkgpattern.MatchSimplePattern(p) matchers = append(matchers, f) } matchpkg = func(name string) bool { for _, f := range matchers { if f(name) { return true } } return false } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.7K bytes - Viewed (0)