This topic describes how to prepare the environment before you use the SDK for Go to send and receive messages.


  1. Download the Go client from the SDK source code repository.
  2. Obtain the resource information.
    You must create the resources, including the instance endpoint, topic, and consumer group, that are used in the code of the SDK in the Message Queue for Apache RocketMQ console in advance. For more information, see Step 2: Create resources.
  3. Compile and install the SDK, modify parameters in the SDK based on the resource information that is obtained in Step 2, and then run the sample code. For more information, see Sample code.