Install Go and the ApsaraMQ for RocketMQ SDK for Go to start sending and subscribing to messages.
Environment requirements
Go is installed. For more information, see Installing Go from source.
To check your installed version, run:
go versionInstall SDK for Go
Run the following command to enable Go mod:
go env -w GO111MODULE=onRun the following command to configure a Go mod proxy:
go env -w GOPROXY=https://goproxy.cn,directInitialize Go mod and generate the go.mod file:
go mod initInstall the SDK package:
go get github.com/aliyunmq/mq-http-go-sdk