Install the ApsaraMQ for RocketMQ Go SDK and prepare your development environment to send and receive messages.
Prerequisites
Before you begin, make sure that you have an ApsaraMQ for RocketMQ 5.x instance with the following resources created in the ApsaraMQ for RocketMQ console:
| Resource | Description |
|---|---|
| Instance endpoint | The access URL for your RocketMQ instance |
| Topic | The message destination |
| Consumer group | The logical grouping of consumers that subscribe to the topic |
To create these resources, see Step 2: Create resources.
Install the SDK
Run the following command to install the SDK:
go get -u github.com/apache/rocketmq-clients/golang/v5