Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOptions ¶
type ConfigOptions[T any] interface { Initialize(string) error Validate() (bool, error) Clone() *T }
ConfigOptions is an interface for configuration options that can be initialized and validated.
type EnvString ¶
type EnvString string
EnvString is a string that should automatically have any environment variable references expanded as it is decoded from YAML. For example, if the YAML contains
foo: ${BAR}
then the value of foo will be the value of the BAR environment variable.
type EnvStringMap ¶
EnvStringMap is a map of strings that should automatically expand environment variables as it is decoded from YAML (like EnvString).
func (*EnvStringMap) Unmarshal ¶
func (s *EnvStringMap) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.