For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Slack communityBook a demo
HomeAPI DefinitionSDKsDocsCLI & API Reference
HomeAPI DefinitionSDKsDocsCLI & API Reference
  • Introduction
    • Overview
    • Language Support
    • SDK Customer Showcase
      • Python
      • Go
      • .NET
      • Java
      • PHP
      • Ruby
  • Capabilities
    • Strongly Typed
    • Idiomatic Method Names
    • Schema Validation
    • Discriminated Unions
    • Multipart Form Data
    • Forward Compatibility
    • Registry Publishing
    • Auto-Pagination
    • OAuth Token Refresh
    • Retries with Backoff
    • Webhook Signature Verification
    • Idempotency Headers
    • Server-Sent Events
    • Integration Tests
    • Code Snippets
    • Augment with Custom Code
    • Merging Multiple APIs
    • WebSockets
  • Reference
    • Configuration
  • Guides
    • Generate your First SDK
    • Preview your SDK Locally
    • Publish a Public-Facing SDK
LogoLogo
Slack communityBook a demo
On this page
  • February 17, 2025
  • 0.36.5
  • February 5, 2025
  • 0.36.4
  • February 4, 2025
  • 0.36.3
  • January 26, 2025
  • 0.36.2
  • January 23, 2025
  • 0.36.1
  • January 22, 2025
  • 0.36.0
  • January 17, 2025
  • 0.35.2
  • January 3, 2025
  • 0.35.1
  • December 12, 2024
  • 0.34.0
  • November 21, 2024
  • 0.33.0
IntroductionChangelogs

Go

February 17, 2025
February 17, 2025

0.36.5

(fix): Fix an issue where map values were not correctly serialized as deep object query parameters.


February 5, 2025
February 5, 2025

0.36.4

(fix): Fix an issue where the go-v2 generator call prevented the go generator from succeeding in remote code generation environments.


February 4, 2025
February 4, 2025

0.36.3

(fix): Fix an issue where the version header specified by the user wasn’t being used.


January 26, 2025
January 26, 2025

0.36.2

(fix): Fix cursor pagination stopping condition when the cursor types do not match (e.g. a *string cursor type with a string next cursor type).


January 23, 2025
January 23, 2025

0.36.1

(fix): Fix offset pagination method generation for non-integer offset parameters (e.g. float64).


January 22, 2025
January 22, 2025

January 17, 2025
January 17, 2025

0.35.2

(fix): Fixes an issue where certain literal string values were incorrectly generated in undiscriminated unions.

(fix): Fixes an issue where custom names applied to a basic auth scheme were not preserved.


January 3, 2025
January 3, 2025

0.35.1

(fix): Fixes an issue where the delimiter length was included during stream data read, even when the delimiter was missing, leading to a bufio.ErrAdvanceTooFar error


December 12, 2024
December 12, 2024

November 21, 2024
November 21, 2024

Older posts

Next
Built with

0.36.0

(feat): Adds support for a few new configuration options, all of which are shown below:

- name: fern-api/fern-go-sdk
1 version: 0.36.0
2 config:
3 packageLayout: flat
4 clientName: Acme
5 clientConstructorName: New

With this, the generated SDK will all be deposited at the root of the module, and the client can be constructed like so:

package main
1import (
2 "context"
3 "fmt"
4 "log"
5 acme "github.com/acme/acme-go"
6)
7func main() {
8 client := acme.New()
9 response, err := client.GetUser(
10 context.Background(),
11 &acme.GetUserRequest{
12 ID: "85307b0b-094b-41b5-b61d-347ca15e5da2",
13 },
14 )
15 if err != nil {
16 log.Fatal(err)
17 }
18 fmt.Println(response)
19} ```

0.34.0

(feat): Add support for sending the User-Agent header on every request. Go packages are uniquely identified by their full module path, so the User-Agent header is generated in the <module>/<version> format, e.g. User-Agent: github.com/acme/acme-go/1.0.0

0.33.0

(feat): Add support for the inlinePathParameters configuration option, which generates path parameters in the generated request type (if any) instead of as separate positional parameters.

# generators.yml
1- name: fern-api/fern-go-sdk
2 version: 0.33.0
3 config:
4 inlinePathParameters: true