public

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 15 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 the public file

Types

type Generator

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

func New

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

New public generator

func (*Generator) GenerateDir added in v0.2.4

func (g *Generator) GenerateDir(ctx context.Context, _ overlay.F, dir *overlay.Dir) error

type State

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

func Load

func Load(fsys fs.FS, flag *framework.Flag) (*State, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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