generator

package
v0.1.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(state *State) ([]byte, error)

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func New

func New(fs fs.FS, module *gomod.Module, parser *goparse.Parser) *Generator

func (*Generator) Compile

func (c *Generator) Compile(ctx context.Context) ([]byte, error)

func (*Generator) GenerateFile

func (c *Generator) GenerateFile(ctx context.Context, fsys overlay.F, file *overlay.File) error

func (*Generator) Parse

func (c *Generator) Parse(ctx context.Context) (*State, error)

type State

type State struct {
	Imports []*imports.Import
}

Jump to

Keyboard shortcuts

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