gengo

package
v2.0.586 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 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 GenerateGoClient added in v2.0.285

func GenerateGoClient(serviceFile string, generatePath string) error

func GenerateModels

func GenerateModels(serviceFile string, generatePath string) error

func GenerateService added in v2.0.279

func GenerateService(moduleName string, serviceFile string, swaggerPath string, generatePath string) error

func GoType

func GoType(typ *spec.TypeDef) string

func GoTypeSamePackage added in v2.0.586

func GoTypeSamePackage(typ *spec.TypeDef) string

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 NewGoWriter

func NewGoWriter() *gen.Writer

func PlainGoType

func PlainGoType(typ string, modelsPackage string) string

Types

type Package added in v2.0.584

type Package struct {
	// contains filtered or unexported fields
}

func NewPackage added in v2.0.584

func NewPackage(root string, packageName string) Package

func (Package) Import added in v2.0.584

func (p Package) Import() string

func (Package) ImportAlias added in v2.0.584

func (p Package) ImportAlias(alias string) string

func (Package) Path added in v2.0.584

func (p Package) Path(filename string) string

Jump to

Keyboard shortcuts

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