scala

package
v2.1.1624 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultValue

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

func GenerateCirceModels

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

func GeneratePlayService

func GeneratePlayService(specification *spec.Spec, swaggerPath string, generatePath string, servicesPath string) *sources.Sources

func GenerateSttpClient

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

func JoinParams

func JoinParams(params []string) string

func NewScalaWriter

func NewScalaWriter() *sources.Writer

func PlainScalaType

func PlainScalaType(typ string) string

func ScalaType

func ScalaType(typ *spec.TypeDef) string

Types

type Package

type Package struct {
	Path        string
	PackageName string
	PackageStar string
}

func NewPackage

func NewPackage(rootPath, rootPackageName, packageName string) Package

func (Package) GetPath

func (m Package) GetPath(filename string) string

func (Package) Subpackage

func (m Package) Subpackage(name string) Package

Jump to

Keyboard shortcuts

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