You can use SDK for Go to send and subscribe to messages over HTTP. This topic describes the methods for sending and subscribing to messages by using SDK for Go and provides the links that point to related sample code.
Before you perform operations, learn how to use HTTP SDKs for multiple languages, and the features supported in each version. For more information, see Release notes.
Prepare the environment based on the README description of SDK for Go. For more information, see README.
Download SDKs and demos
Go to Message Queue for Apache RocketMQ HTTP SDK repositories. Download the SDKs of the required languages, read SDK instructions, and then view the sample code for sending and subscribing to messages.
Send and subscribe to messages
You can use SDK for Go to send and subscribe to messages over HTTP. The following table lists the message types and the latest code links.