Skip to main content
Next, create the consumer application by pasting the following Go code into a file named consumer.go.
Fill in the appropriate <Broker Service URL> and <API KEY> in the URL and Authentication properties where the consumer is instantiated via the pulsar.NewClient method. Compile the consumer as follows: