Documentation
¶
Overview ¶
Package codegen emits reflection-free configbind apply, flag, and env key tables.
Index ¶
Constants ¶
View Source
const ( FieldString = codegen.FieldString FieldBool = codegen.FieldBool FieldInt = codegen.FieldInt FieldDuration = codegen.FieldDuration FieldStringSlice = codegen.FieldStringSlice FieldStruct = codegen.FieldStruct FieldStructSlice = codegen.FieldStructSlice )
Variables ¶
This section is empty.
Functions ¶
func GenerateGroup ¶ added in v0.1.13
GenerateGroup generates one subset of a package's specs. indexOffset is the position of specs[0] within the package's full spec list; it keeps generated identifiers unique when a package is emitted as several files.
Types ¶
type Spec ¶
type Spec struct {
PackagePath string
TypeName string
Prefix string
SubCommand bool
Name string
Help string
// Doc is the struct's godoc text. Bind specs render it above the scaffold
// table; subcommand specs fall back to it when Help is empty.
Doc string
Fields []Field
}
Spec is a Bind-style struct and prefix discovered in one Go package.
Click to show internal directories.
Click to hide internal directories.