Documentation
¶
Overview ¶
Package stdenvcfg provides environment configuration as an fx dependency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provide ¶
Provide configuration T as an fx dependency that parses the environment with an optional prefix.
func ProvideExplicitEnvironment ¶ added in v0.0.138
ProvideExplicitEnvironment provides env options with environment options pre-set. Useful for testing.
func ProvideNamed ¶ added in v0.0.128
ProvideNamed configuration T as an fx dependency that parses the environment with an optional prefix.
func ProvideOSEnvironment ¶ added in v0.0.138
ProvideOSEnvironment provides an Environment from the os.Environ.
Types ¶
type Environment ¶ added in v0.0.61
Environment allows providing environment variables pre-set. Useful for testing.
type HexBytes ¶ added in v0.0.123
type HexBytes []byte
HexBytes can be used for configuration to read binary encoded values from the environment variables.
func (*HexBytes) UnmarshalText ¶ added in v0.0.123
UnmarshalText decodes a hex-encoded string into the byte slice.