Lines Matching refs:excludes
25 func verifyGlob(key globKey, pattern string, excludes []string, g pathtools.GlobResult) {
29 if len(excludes) != len(g.Excludes) {
30 panic(fmt.Errorf("Mismatched excludes %v and %v for glob key %q", excludes, g.Excludes, key))
33 for i := range excludes {
34 if g.Excludes[i] != excludes[i] {
35 panic(fmt.Errorf("Mismatched excludes %v and %v for glob key %q", excludes, g.Excludes, key))
40 func (c *Context) glob(pattern string, excludes []string) ([]string, error) {
43 excludes = append([]string(nil), excludes...)
44 sort.Strings(excludes)
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)
94 return keys[i].excludes < keys[j].excludes
109 excludes string member
114 func globToKey(pattern string, excludes []string) globKey {
115 return globKey{pattern, strings.Join(excludes, "|")}