From 3de56a5e3d52238d0ef73f438bf5ee57fd452a9a Mon Sep 17 00:00:00 2001 From: Thomas Gilbert Date: Wed, 18 Dec 2024 10:35:17 -0500 Subject: [PATCH] clarify regional instructions for go server --- .../sources/catalog/libraries/server/go/index.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/connections/sources/catalog/libraries/server/go/index.md b/src/connections/sources/catalog/libraries/server/go/index.md index bd8c279e48..e6fe6f457a 100644 --- a/src/connections/sources/catalog/libraries/server/go/index.md +++ b/src/connections/sources/catalog/libraries/server/go/index.md @@ -41,11 +41,17 @@ That will create a `client` that you can use to send data to Segment for your so The default initialization settings are production-ready and queue 20 messages before sending a batch request, and a 5 second interval. ### Regional configuration -For Business plans with access to Regional Segment, you can use the host configuration parameter to send data to the desired region: +For Business plans with access to Regional Segment, you can use the endpoint configuration parameter to send data to the desired region: -Oregon (Default) — api.segment.io/ -Dublin — events.eu1.segmentapis.com +- Oregon (Default) — https://api.segment.io +- Dublin — https://events.eu1.segmentapis.com +Example configuration for EU region: +```go +client, err := analytics.NewWithConfig(writeKey, analytics.Config{ + Endpoint: "https://events.eu1.segmentapis.com", +}) +``` ## Identify > note ""