gosdk

package
v0.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gosdk emits an idiomatic, resource-oriented Go SDK from a prepared OpenAPI client contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(document *highv3.Document, options Options) (*sdk.Result, error)

Generate prepares an OpenAPI document and emits a Go SDK without workflows. Call sdk.Prepare, sdk.PrepareArazzo, and GenerateContract when generating finite Arazzo workflow helpers.

func GenerateContract

func GenerateContract(contract *sdk.Contract, options Options) (*sdk.Result, error)

GenerateContract emits a Go SDK from a prepared contract.

Types

type Options

type Options struct {
	PackageName string
	Prepare     sdk.PrepareOptions
	Workflows   []*sdk.Workflow
	Models      []modelgen.Option
}

Options configures Go SDK generation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL