code: func (formats Formats) GetByNames(names ...string) (Formats, error) {
  	var types []Format
  
  	for _, name := range names {
  		tpe, ok := formats.GetByName(name)
  		if !ok {
  			return types, fmt.Errorf("OutputFormat with key %q not found", name)
  		}
  		types = append(types, tpe)
  	}
  	return types, nil
  }
docs: // GetByNames gets a list of formats given a list of identifiers.