golang

package
v2.1.1657 Latest Latest
Warning

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

Go to latest
Published: May 20, 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

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

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

func GoTypeSamePackage(typ *spec.TypeDef) string

func Imports

func Imports() *imports

func JoinDelimParams

func JoinDelimParams(params []string) string

func JoinParams

func JoinParams(params []string) string

func Module

func Module(rootModule string, path string) module

func NewGoWriter

func NewGoWriter() *sources.Writer

func PlainGoType

func PlainGoType(typ string, modelsPackage string) string

func WriteAlignedLines

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