genkotlin

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToPascalCase = casee.ToPascalCase

Functions

func GenerateClient added in v2.1.1096

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

func GenerateModels

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

func JoinDelimParams added in v2.1.1096

func JoinDelimParams(params []string) string

func KotlinType

func KotlinType(typ *spec.TypeDef) string

func NewKotlinWriter

func NewKotlinWriter() *sources.Writer

func PlainKotlinType

func PlainKotlinType(typ string) string

func TrimSlash added in v2.1.1096

func TrimSlash(param string) string

Types

type Module

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

func Package

func Package(rootPath string, packageName string) Module

func (Module) GetPath

func (m Module) GetPath(filename string) string

func (Module) Subpackage

func (m Module) Subpackage(name string) Module

Jump to

Keyboard shortcuts

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