code: func newGenerators(regexps []*syntax.Regexp, args *GeneratorArgs) ([]*internalGenerator, error) {
  	generators := make([]*internalGenerator, len(regexps), len(regexps))
  	var err error
  
  	// create a generator for each alternate pattern
  	for i, subR := range regexps {
  		generators[i], err = newGenerator(subR, args)
  		if err != nil {
  			return nil, err
  		}
  	}
  
  	return generators, nil
  }
docs: // Create a new generator for each expression in regexps.