This topic describes the sample code for sending and receiving messages by using the Apache RocketMQ SDK for Go.

Message typeSample code for sending messagesSample code for subscribing to messages in SimpleConsumer mode
Normal messagesExampleSimpleConsumer.go
Ordered messagesExampleProducerWithFifoMessage.go
Scheduled and delayed messagesExampleProducerDelayMessage.go
Transactional messagesExampleProducerWithTransactionalMessage.go