;&#x4E32;(&quot;&quot;)&#x7684;&#x533F;&#x540D;&#x4EA4;&#x6362;&#x673A;&#x3002;
&#x56DE;&#x60F3;&#x6211;&#x4EEC;&#x4E4B;&#x524D;&#x662F;&#x5982;&#x4F55;&#x53D1;&#x5E03;&#x4E00;&#x5219;&#x6D88;&#x606F;&#xFF1A;</p>
<pre><code> err = ch.Publish(
  &quot;&quot;,     // exchange
  q.Name, // routing key
  false,  // mandatory
  false,  // immediate
  amqp.Publishing{
    ContentType: &quot;text/plain&quot;,
    Body:        []byte(body),
})
</code></pre><p>exchange&#x53C2;&#x6570;&#x5C31;&#x662F;&#x4EA4;&#x6362;