code: func CompileGlob(pat string) (*Glob, error) {
  	s, err := translateGlob(pat)
  	if err != nil {
  		return nil, err
  	}
  
  	r, err := regexp.Compile(s)
  	if err != nil {
  		return nil, err
  	}
  
  	return &Glob{pat, s, r}, nil
  }
docs: // CompileGlob translates pat into a form more convenient for
  // matching against paths in the store.