gengo

package
v2.1.1280 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToPascalCase = casee.ToPascalCase
View Source
var ToUpperCase = casee.ToUpperCase

Functions

func DefaultValue

func DefaultValue(typ *spec.TypeDef, value string) string

func GenerateClient added in v2.1.1198

func GenerateClient(specification *spec.Spec, moduleName string, generatePath string) *sources.Sources

func GenerateModels

func GenerateModels(specification *spec.Spec, moduleName string, generatePath string) *sources.Sources

func GenerateService added in v2.0.279

func GenerateService(specification *spec.Spec, moduleName string, swaggerPath string, generatePath string, servicesPath string) *sources.Sources

func GoType

func GoType(typ *spec.TypeDef) string

func GoTypeSamePackage added in v2.0.586

func GoTypeSamePackage(typ *spec.TypeDef) string

func Imports added in v2.0.592

func Imports() *imports

func JoinDelimParams added in v2.0.297

func JoinDelimParams(params []string) string

func JoinParams added in v2.0.297

func JoinParams(params []string) string

func Module added in v2.0.598

func Module(rootModule string, path string) module

func NewGoWriter

func NewGoWriter() *sources.Writer

func PlainGoType

func PlainGoType(typ string, modelsPackage string) string

func WriteAlignedLines added in v2.1.1206

func WriteAlignedLines(w *sources.Writer, lines [][]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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