Skip to content

Commit b571b4a

Browse files
Merge pull request #272355 from spelluru/ehubgo0416
Added missing package and imports
2 parents 5ec7869 + 7dd483d commit b571b4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/event-hubs/event-hubs-go-get-started-send.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Azure Event Hubs is a Big Data streaming platform and event ingestion service, c
1313
This quickstart describes how to write Go applications to send events to or receive events from an event hub.
1414

1515
> [!NOTE]
16-
> This quickstart is based on samples on GitHub at [https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/messaging/azeventhubs](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/messaging/azeventhubs). The send one is based on the **example_producing_events_test.go** sample and the receive one is based on the **example_processor_test.go** sample. The code is simplified for the quickstart and all the detailed comments are removed, so look at the samples for more details and explanations.
16+
> This quickstart is based on samples on GitHub at [https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/messaging/azeventhubs](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/messaging/azeventhubs). The send events section is based on the **example_producing_events_test.go** sample and the receive one is based on the **example_processor_test.go** sample. The code is simplified for the quickstart and all the detailed comments are removed, so look at the samples for more details and explanations.
1717
1818
## Prerequisites
1919

@@ -100,7 +100,7 @@ Don't run the application yet. You first need to run the receiver app and then t
100100

101101
### Create a Storage account and container
102102

103-
State such as leases on partitions and checkpoints in the event stream are shared between receivers using an Azure Storage container. You can create a storage account and container with the Go SDK, but you can also create one by following the instructions in [About Azure storage accounts](../storage/common/storage-account-create.md).
103+
State such as leases on partitions and checkpoints in the events are shared between receivers using an Azure Storage container. You can create a storage account and container with the Go SDK, but you can also create one by following the instructions in [About Azure storage accounts](../storage/common/storage-account-create.md).
104104

105105
[!INCLUDE [storage-checkpoint-store-recommendations](./includes/storage-checkpoint-store-recommendations.md)]
106106

@@ -110,6 +110,7 @@ To receive the messages, get the Go packages for Event Hubs as shown in the foll
110110

111111
```bash
112112
go get github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs
113+
go get github.com/Azure/azure-sdk-for-go/sdk/storage/azblob
113114
```
114115

115116
### Code to receive events from an event hub
@@ -140,6 +141,7 @@ import (
140141

141142
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs"
142143
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/checkpoints"
144+
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container"
143145
)
144146

145147
func main() {

0 commit comments

Comments
 (0)