Documentation ¶ Index ¶ func Generate(state *State) ([]byte, error) type Generator func New(module *gomod.Module) *Generator func (g *Generator) GenerateFile(ctx context.Context, fsys overlay.F, file *overlay.File) error func (g *Generator) Parse(ctx context.Context) (*State, error) type State Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Generate ¶ func Generate(state *State) ([]byte, error) Generate a main file Types ¶ type Generator ¶ type Generator struct { // contains filtered or unexported fields } func New ¶ func New(module *gomod.Module) *Generator func (*Generator) GenerateFile ¶ func (g *Generator) GenerateFile(ctx context.Context, fsys overlay.F, file *overlay.File) error func (*Generator) Parse ¶ func (g *Generator) Parse(ctx context.Context) (*State, error) type State ¶ type State struct { Programs []*imports.Import Plugins []*imports.Import // TODO } State for the generator Source Files ¶ View all Source files import.go Click to show internal directories. Click to hide internal directories.