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
IntroductionChangelogs

Go

January 22, 2025
January 22, 2025
Was this page helpful?
Edit this page
Previous

January 17, 2025

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} ```