Documentation ¶ Index ¶ type Config type Generator func New(config Config) (*Generator, error) func (g *Generator) AddSource(source Source) (err error) func (g *Generator) Files() []codegen.File func (g *Generator) Outputs() map[string][]byte type Source 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 } Source Files ¶ View all Source files generate.go utils.go validator.go Click to show internal directories. Click to hide internal directories.