code: func (r Resources) GetMatch(pattern string) Resource {
  	g, err := internal.GetGlob(pattern)
  	if err != nil {
  		return nil
  	}
  
  	for _, resource := range r {
  		if g.Match(strings.ToLower(resource.Name())) {
  			return resource
  		}
  	}
  
  	return nil
  }
docs: // GetMatch finds the first Resource matching the given pattern, or nil if none found.
  // See Match for a more complete explanation about the rules used.