code: func (r *RuleSet) matchingFuncs(c context.Context, configSet, path string) ([]Func, error) {
  	r.l.RLock()
  	defer r.l.RUnlock()
  
  	out := []Func{}
  	for _, rule := range r.r {
  		switch pat, err := r.renderedConfigPattern(c, rule); {
  		case err != nil:
  			return nil, err
  		case pat.ConfigSet.Match(configSet) && pat.Path.Match(path):
  			out = append(out, rule.cb)
  		}
  	}
  
  	return out, nil
  }
docs: ///
  // matchingFuncs returns a validator callbacks matching the given file.