generator

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIExample added in v1.1.2

func APIExample(lang APIExampleLanguage, server string, endpoint openapi.Endpoint, contentType string) string

func CurlExample added in v1.1.2

func CurlExample(server string, endpoint openapi.Endpoint, contentType string) string

func GoExample added in v1.1.2

func GoExample(server string, endpoint openapi.Endpoint, contentType string) string

func JSExample added in v1.1.2

func JSExample(server string, endpoint openapi.Endpoint, contentType string) string

func PythonExample added in v1.1.2

func PythonExample(server string, endpoint openapi.Endpoint, contentType string) string

func SetEmbedFS

func SetEmbedFS(app embed.FS)

SetEmbedFS provides the embedded React shell sources to the generator.

Types

type APIExampleLanguage added in v1.1.2

type APIExampleLanguage string
const (
	LangCurl   APIExampleLanguage = "curl"
	LangGo     APIExampleLanguage = "go"
	LangPython APIExampleLanguage = "python"
	LangJS     APIExampleLanguage = "js"
)

type Generator

type Generator struct {
	Config  config.Config
	RootDir string
	OutDir  string
	// contains filtered or unexported fields
}

func New

func New(cfg config.Config, rootDir string) *Generator

func (*Generator) Build

func (g *Generator) Build() error

Jump to

Keyboard shortcuts

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