Create a new directory anywhere you’d like for this project:
Copy
Ask AI
mkdir pulsar-go-getting-started && cd pulsar-go-getting-started
Initialize the Go module and download the Pulsar Go client dependency:
Copy
Ask AI
go mod init pulsar-go-getting-startedgo get github.com/apache/pulsar-client-gogo get github.com/apache/pulsar-client-go/pulsar/authgo get github.com/apache/pulsar-client-go/pulsar