[x] %s&quot;</span>, d.Body)
                }
        }()

        log.Printf(<span class="hljs-string">&quot; [*] Waiting for logs. To exit press CTRL+C&quot;</span>)
        &lt;-forever
}
</code></pre>
<p>(<a href="https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/go/receive_logs.go" _target="blank">receive_logs.go</a> &#x6E90;&#x7801;)</p>
<p>&#x8FD9;&#x6837;&#x6211;&#x4EEC;&#x5C31;&#x5B8C;&#x6210;&#x4E86;&#x3002;&#x5982;&#x679C;&#x4F60;&#x60F3;&#x628A;&#x65E5;&#x5FD7;&#x4FDD;&#x5B58;&#x5230;&