Documentation ¶ Index ¶ func Generate(state *State) ([]byte, error) type Main func New(module *gomod.Module) *Main func (m *Main) GenerateFile(ctx context.Context, fsys overlay.F, file *overlay.File) error func (m *Main) 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 Main ¶ type Main struct { // contains filtered or unexported fields } func New ¶ func New(module *gomod.Module) *Main func (*Main) GenerateFile ¶ func (m *Main) GenerateFile(ctx context.Context, fsys overlay.F, file *overlay.File) error func (*Main) Parse ¶ func (m *Main) Parse(ctx context.Context) (*State, error) type State ¶ type State struct { Imports []*imports.Import } State for the generator Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.