Lines Matching refs:g
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))
29 if len(excludes) != len(g.Excludes) {
30 panic(fmt.Errorf("Mismatched excludes %v and %v for glob key %q", excludes, g.Excludes, key))
34 if g.Excludes[i] != excludes[i] {
35 panic(fmt.Errorf("Mismatched excludes %v and %v for glob key %q", excludes, g.Excludes, key))
50 g, exists := c.globs[key]
55 verifyGlob(key, pattern, excludes, g)
57 return append([]string(nil), g.Matches...), nil
68 if g, exists = c.globs[key]; !exists {
75 verifyGlob(key, pattern, excludes, g)
77 return append([]string(nil), g.Matches...), nil