generator

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const FormDataSuffix = "FormData"

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name     string
	Type     string
	Nullable bool
	Optional bool
}

type Generator

type Generator interface {
	GenerateTypes(outputPath string) error
}

func NewGenerator

func NewGenerator(specPath string, t Type) Generator

type Model

type Model struct {
	Name   string
	Type   string
	IsEnum bool
	Fields []Field
	Values []interface{}
}

type Type

type Type int
const (
	TypeScript Type = iota
)

type TypesPlaceholder

type TypesPlaceholder struct {
	Models  []Model
	Now     string
	Version string
}

Jump to

Keyboard shortcuts

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