app

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 11 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(injector *di.Injector, module *gomod.Module, flag *framework.Flag) *Generator

func (*Generator) GenerateFile

func (g *Generator) GenerateFile(fsys genfs.FS, file *genfs.File) error

type State

type State struct {
	Imports  []*imports.Import
	Provider *di.Provider
	Flag     *framework.Flag
}

func Load

func Load(fsys fs.FS, injector *di.Injector, module *gomod.Module, flag *framework.Flag) (*State, error)

Jump to

Keyboard shortcuts

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