code: func (idx *index) match(key string) bool {
  	if idx.pattern == "*" {
  		return true
  	}
  	if idx.opts.CaseInsensitiveKeyMatching {
  		for i := 0; i < len(key); i++ {
  			if key[i] >= 'A' && key[i] <= 'Z' {
  				key = strings.ToLower(key)
  				break
  			}
  		}
  	}
  	return match.Match(key, idx.pattern)
  }
docs: // match matches the pattern to the key