Lines Matching refs:pattern
25 func verifyGlob(key globKey, pattern string, excludes []string, g pathtools.GlobResult) {
26 if pattern != g.Pattern {
27 panic(fmt.Errorf("Mismatched patterns %q and %q for glob key %q", pattern, g.Pattern, key))
40 func (c *Context) glob(pattern string, excludes []string) ([]string, error) {
46 key := globToKey(pattern, excludes)
55 verifyGlob(key, pattern, excludes, g)
61 result, err := c.fs.Glob(pattern, excludes, pathtools.FollowSymlinks)
75 verifyGlob(key, pattern, excludes, g)
91 if keys[i].pattern != keys[j].pattern {
92 return keys[i].pattern < keys[j].pattern
108 pattern string member
114 func globToKey(pattern string, excludes []string) globKey {
115 return globKey{pattern, strings.Join(excludes, "|")}