Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Our configs for parsing and building ExportFile string ConfigStruct string Package string Version string DryRun bool ShowVersion bool ShowHelp bool // Wrappers for env configs RequiredIfNoDef bool UseFieldNameByDefault bool Prefix string TagName string *flag.FlagSet }
Config handles all the envexample configurations.
type EnvTagOptions ¶ added in v0.1.0
type EnvTagOptions struct { Key string LoadFile bool Unset bool NotEmpty bool Required bool IsSlice bool SliceSeperator string DefaultValueTag string TypeName string Prefix string }
func NewEnvTagOptions ¶ added in v0.1.0
func NewEnvTagOptions(name string, gen *Generator, isSlice bool, tag string) *EnvTagOptions
func (*EnvTagOptions) DefaultValue ¶ added in v0.1.0
func (opt *EnvTagOptions) DefaultValue() string
func (*EnvTagOptions) LinePrefix ¶ added in v0.1.0
func (opt *EnvTagOptions) LinePrefix() string
type Generator ¶ added in v0.1.0
type Generator struct { RequiredIfNoDef bool UseFieldNameByDefault bool TagName string // contains filtered or unexported fields }
func NewGenerator ¶ added in v0.1.0
func (*Generator) WriteField ¶ added in v0.1.0
func (*Generator) WriteStruct ¶ added in v0.1.0
func (g *Generator) WriteStruct(writer io.Writer, entry *StructQueueEntry)
Click to show internal directories.
Click to hide internal directories.