Registry /
messaging / azure-azure-event-hubs-go
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
eventhub
✓ github.com/Azure/azure-event-hubs-go
Sends a string message to an Azure Event Hub.
package main
import (
"context"
"github.com/Azure/azure-event-hubs-go"
)
func main() {
hub, _ := eventhub.NewHubFromConnectionString("Endpoint=sb://namespace.servicebus.windows.net/;SharedAccessKeyName=name;SharedAccessKey=key;EntityPath=eventhub-name")
ctx := context.Background()
hub.Send(ctx, eventhub.NewEventFromString("hello"))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.3.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.