generator

package
v0.8.0-beta Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	// Validate ensures the generator is properly configured
	Validate() error
	// Generate runs the code generator and returns the generated code block
	Generate() (string, error)
}

func New

func New(opts ...*parser.Option) (Generator, error)

type OptionType

type OptionType = string
const (
	Input    OptionType = "input"
	Loader   OptionType = "loader"
	Template OptionType = "template"
)

Jump to

Keyboard shortcuts

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