Skip to navigation

0.36.0

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

- name: fern-api/fern-go-sdk
version: 0.36.0
config:
packageLayout: flat
clientName: Acme
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
import (
"context"
"fmt"
"log"
acme "github.com/acme/acme-go"
)
func main() {
client := acme.New()
response, err := client.GetUser(
context.Background(),
&acme.GetUserRequest{
ID: "85307b0b-094b-41b5-b61d-347ca15e5da2",
},
)
if err != nil {
log.Fatal(err)
}
fmt.Println(response)
} ```