sdk

package
v0.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION = "v0.0.1-beta"
)

Variables

View Source
var ClientTemplate string
View Source
var MethodTemplate string

Functions

func CreateFuncMap

func CreateFuncMap() template.FuncMap

func ExtractPath

func ExtractPath(s string) string

func FirstAlphabet

func FirstAlphabet(s string) string

func FirstAlphabetToUpperCase

func FirstAlphabetToUpperCase(s string) string

func Generate

func Generate(v3Doc *libopenapi.DocumentModel[v3high.Document])

func GenerateFile

func GenerateFile(op *v3high.Operation, method, key string) error

func JoinStrings

func JoinStrings(sep string, items []string) string

func MustAbs

func MustAbs(path string) string

func PathToFilename

func PathToFilename(s string) (filename string)

func PathToPascal

func PathToPascal(s string) string

func ToCamelCase

func ToCamelCase(s string) string

func ToLowerCase

func ToLowerCase(s string) string

func ToPascalCase

func ToPascalCase(s string) string

func WriteClient

func WriteClient() []byte

Types

type Template

type Template struct {
	OAS *v3high.Operation
	// contains filtered or unexported fields
}

func New

func New(oas *v3high.Operation, method, path string) *Template

func (*Template) WriteTemplate

func (t *Template) WriteTemplate() []byte

Jump to

Keyboard shortcuts

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