generator

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 15 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 {
	Capitalizations []string
	Warner          func(message string)
	OutputFiler     func(definition string) string
}

type Generator

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

func New

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

func (*Generator) AddSource added in v1.0.1

func (g *Generator) AddSource(source Source) (err error)

func (*Generator) Files added in v1.0.1

func (g *Generator) Files() []codegen.File

func (*Generator) Outputs added in v1.0.1

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

type Source added in v1.0.1

type Source struct {
	PackageName string
	RootType    string
	Folder      string
	Data        []byte
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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