mainfile

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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