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