public

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 13 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 struct {
	// contains filtered or unexported fields
}

func New

func New(flag *bud.Flag, module *gomod.Module) *Generator

func (*Generator) GenerateFile

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

type State

type State struct {
	Imports []*imports.Import
	Embeds  []*embed.File
	Flag    *bud.Flag
}

func Load

func Load(flag *bud.Flag, fsys fs.FS, module *gomod.Module) (*State, error)

Jump to

Keyboard shortcuts

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