You can publish events by using SDK for Go to call the required API operation.

SDK for Go provides the following API operation.