code: func matches(name string, patterns []string) (bool, error) {
  	if len(patterns) == 0 {
  		return true, nil
  	}
  
  	for _, pattern := range patterns {
  		match, err := filepath.Match(pattern, name)
  		if err != nil {
  			return false, err
  		}
  
  		if match {
  			return true, nil
  		}
  	}
  
  	return false, nil
  }
docs: // matches returns true if `name` is matched by any of the given `patterns`,
  // or if zero `patterns` are provided.