generate

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GenTemplate is the filename inside embedded fs for _gen files.
	GenTemplate = "template_gen.go.tmpl"
	// ImplTemplate is the filename inside embedded fs for _impl file.
	ImplTemplate = "template_impl.go.tmpl"
)

Variables

This section is empty.

Functions

func Run

func Run(pwd string, options CLIOptions) error

Run runs the builder generation with input options.

Types

type CLIOptions

type CLIOptions struct {
	Destdir      string
	File         string
	NoNotice     bool
	Prefix       string
	Structs      []string
	ValidateFunc string
	ReturnCopy   bool
}

CLIOptions represents the struct of available options to be given to go-builder-generator.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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