genkotlin

package
v2.1.948 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateModels

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

func KotlinType

func KotlinType(typ *spec.TypeDef) string

func NewKotlinWriter

func NewKotlinWriter() *gen.Writer

func PlainKotlinType

func PlainKotlinType(typ 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