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 FieldStringSlice = codegen.FieldStringSlice FieldStruct = codegen.FieldStruct // ScaffoldTOMLName and ScaffoldEnvName are the exported constant names // emitted into the package containing Bind calls. ScaffoldTOMLName = "ConfigbindScaffoldTOML" ScaffoldEnvName = "ConfigbindScaffoldEnv" )
Variables ¶
This section is empty.
Functions ¶
func GenerateScaffolds ¶ added in v0.1.10
GenerateScaffolds builds TOML and .env sample text from Bind struct metadata. It does not write files or generate an application command; callers may print the emitted constants from a command appropriate for their application.
Types ¶
Click to show internal directories.
Click to hide internal directories.