genjava

package
v2.0.618 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToPascalCase = casee.ToPascalCase

Functions

func DefaultValue

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

func GenerateModels

func GenerateModels(serviceFile string, generatePath string) error

func GenerateService added in v2.0.602

func GenerateService(serviceFile string, packageName string, swaggerPath string, generatePath string, servicesPath string) error

func JavaType

func JavaType(typ *spec.TypeDef) string

func JoinParams

func JoinParams(params []string) string

func NewJavaWriter

func NewJavaWriter() *gen.Writer

func PlainJavaType

func PlainJavaType(typ string, referenceTypesOnly bool) string

Types

type Package added in v2.0.618

type Package struct {
	RootPath    string
	Path        string
	PackageName string
	PackageStar string
}

func PackageInfo added in v2.0.618

func PackageInfo(rootPath string, packageName string) Package

func (Package) GetPath added in v2.0.618

func (p Package) GetPath(filename string) string

func (Package) Subpackage added in v2.0.618

func (p Package) Subpackage(name string) Package

Jump to

Keyboard shortcuts

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