generator

package
v0.0.0-...-2cfe4bf Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Flags              ConfigFlags
	SchemaMappings     []SchemaMapping
	Capitalizations    []string
	ResolveExtensions  []string
	YAMLExtensions     []string
	DefaultPackageName string
	DefaultOutputName  string
	Warner             func(string)
}

type ConfigFlags

type ConfigFlags struct {
	IntAsInt64 bool
}

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Generator, error)

func (*Generator) DoFile

func (g *Generator) DoFile(fileName string) error

func (*Generator) Sources

func (g *Generator) Sources() map[string][]byte

type SchemaMapping

type SchemaMapping struct {
	SchemaID    string
	PackageName string
	RootType    string
	OutputName  string
}

Jump to

Keyboard shortcuts

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