Skip to content

Commit 3de56a5

Browse files
author
Thomas Gilbert
committed
clarify regional instructions for go server
1 parent 0792f20 commit 3de56a5

File tree

1 file changed

+9
-3
lines changed
  • src/connections/sources/catalog/libraries/server/go

1 file changed

+9
-3
lines changed

src/connections/sources/catalog/libraries/server/go/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,17 @@ That will create a `client` that you can use to send data to Segment for your so
4141
The default initialization settings are production-ready and queue 20 messages before sending a batch request, and a 5 second interval.
4242

4343
### Regional configuration
44-
For Business plans with access to Regional Segment, you can use the host configuration parameter to send data to the desired region:
44+
For Business plans with access to Regional Segment, you can use the endpoint configuration parameter to send data to the desired region:
4545

46-
Oregon (Default) — api.segment.io/
47-
Dublin — events.eu1.segmentapis.com
46+
- Oregon (Default) — https://api.segment.io
47+
- Dublin — https://events.eu1.segmentapis.com
4848

49+
Example configuration for EU region:
50+
```go
51+
client, err := analytics.NewWithConfig(writeKey, analytics.Config{
52+
Endpoint: "https://events.eu1.segmentapis.com",
53+
})
54+
```
4955
## Identify
5056

5157
> note ""

0 commit comments

Comments
 (0)