diff --git a/examples/list_workspaces.go b/examples/list_workspaces.go index 008704f..37fdc92 100644 --- a/examples/list_workspaces.go +++ b/examples/list_workspaces.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/xata/internal/fern-core/generated/go/core/core.go b/xata/internal/fern-core/generated/go/core/core.go index d8a8273..235d931 100644 --- a/xata/internal/fern-core/generated/go/core/core.go +++ b/xata/internal/fern-core/generated/go/core/core.go @@ -20,14 +20,15 @@ const ( xataAgentHeader = "x-xata-agent" userAgentHeader = "user-agent" sdkVERSION = "0.0.1" + + xataAgentSDKName = "GO_SDK" ) // fernHeaders specifies all of the standard Fern headers in // a set so that they're easier to access and reference. var fernHeaders = []map[string]string{ {contentTypeHeader: contentType}, - {xataAgentHeader: "client=GO_SDK"}, - {xataAgentHeader: fmt.Sprintf("version=%v", sdkVERSION)}, + {xataAgentHeader: fmt.Sprintf("client=%s; version=%s", xataAgentSDKName, sdkVERSION)}, {userAgentHeader: fmt.Sprintf("xataio/xata-go:%v", sdkVERSION)}, } diff --git a/xata/internal/fern-workspace/generated/go/core/core.go b/xata/internal/fern-workspace/generated/go/core/core.go index d8a8273..235d931 100644 --- a/xata/internal/fern-workspace/generated/go/core/core.go +++ b/xata/internal/fern-workspace/generated/go/core/core.go @@ -20,14 +20,15 @@ const ( xataAgentHeader = "x-xata-agent" userAgentHeader = "user-agent" sdkVERSION = "0.0.1" + + xataAgentSDKName = "GO_SDK" ) // fernHeaders specifies all of the standard Fern headers in // a set so that they're easier to access and reference. var fernHeaders = []map[string]string{ {contentTypeHeader: contentType}, - {xataAgentHeader: "client=GO_SDK"}, - {xataAgentHeader: fmt.Sprintf("version=%v", sdkVERSION)}, + {xataAgentHeader: fmt.Sprintf("client=%s; version=%s", xataAgentSDKName, sdkVERSION)}, {userAgentHeader: fmt.Sprintf("xataio/xata-go:%v", sdkVERSION)}, }