types

package
v2.1.2011-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyType = `empty.Type`

Variables

View Source
var ErrorsModelsPackage = "errmodels"
View Source
var ModelsPackage = "models"

Functions

func ApiHasBody

func ApiHasBody(api *spec.Api) bool

func ApiHasType

func ApiHasType(api *spec.Api, typ string) bool

func BodyHasType

func BodyHasType(api *spec.Api, typ string) bool

func DefaultValue

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

func GenerateEmpty

func GenerateEmpty(module module.Module) *generator.CodeFile

func GoErrType

func GoErrType(typ *spec.TypeDef) string

func GoType

func GoType(typ *spec.TypeDef) string

func GoTypeSamePackage

func GoTypeSamePackage(typ *spec.TypeDef) string

func OperationHasType

func OperationHasType(operation *spec.NamedOperation, typ string) bool

func PlainGoType

func PlainGoType(typ string, modelsPackage string) string

func VersionModelsHasType

func VersionModelsHasType(models []*spec.NamedModel, typ string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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