code: func (o *GreeterAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer {
  
  	result := make(map[string]runtime.Producer)
  	for _, mt := range mediaTypes {
  		switch mt {
  
  		case "text/plain":
  			result["text/plain"] = o.TxtProducer
  
  		}
  
  		if p, ok := o.customProducers[mt]; ok {
  			result[mt] = p
  		}
  	}
  	return result
  
  }
docs: // ProducersFor gets the producers for the specified media types