- Create a dir for the exercise.
- Within that dir create a
eventSenderand aeventReceiverdir. - Within the
eventSenderdir run the following commands:
go mod init eventSendergo get github.com/Azure/azure-sdk-for-go/sdk/messaging/eventgrid/aznamespaces
- In the
eventSenderdir create aeventSender.gofile and copy the contents of theenvetSender.gofile from this gist into it. - Within the
eventSenderdir, use the following command to run the event sender program:
go run eventSender.go
- Within the
eventReceiverdir run the following commands: