package
0.2.2
Repository: https://github.com/berquerant/structconfig.git
Documentation: pkg.go.dev

# Functions

Call calls the appropriate method of r for the kind of f.
DefaultReceptor sets default tag value to the struct field.
EnvReceptor sets environment variable value to the struct field.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMerger returns a new Merger.
NewPairSynth constructs a pair of functions to process [StructField].
No description provided by the author
No description provided by the author
NewTag returns a new [Tag].
NewType constructs [Type] from struct value.
PairsSynthReceptor synthesizes [Converter] and [TypedReceptor].
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PFlagGetReceptor returns a [Receptor] that can retrieve values from the parsed command-line flags.
PFlagSetReceptor returns a [Receptor] that can define the command-line flags.
No description provided by the author
SetReceptor returns a new PairsReceptor to set value to ptr.
No description provided by the author
Switch chooses a method of r that corresponds to kind.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
Result of conv as default value in ParsePair.
Skip conv and callback but no error in TryParse.
No description provided by the author

# Structs

DefaultConverter implements [Converter].
DefaultTypedReceptor implements [TypedReceptor].
No description provided by the author
PairsReceptor is a set of [ParsePair], implements [Receptor].
ParsePair defines a conversion of [StructField] that can fail.
Tag is a tag of struct.
Type is the metadata of struct.

# Interfaces

No description provided by the author
No description provided by the author
Converter is a set of string conversions.
No description provided by the author
No description provided by the author
Receptor accepts [StructField].
No description provided by the author
No description provided by the author
No description provided by the author
TypedReceptor accepts a pair of [StructField] and some value.
No description provided by the author
No description provided by the author

# Type aliases

ConvFunc is a function that converts string into T.
EnvVar is a environment variable.
FlagSetFunc defines a command-line flag.
TypedReceptorFunc accepts a pair of [StructField] and some value.