package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev

# Functions

IsExplicitlySet returns true if and only if the given config option was set explicitly either via a command line argument or via an environment variable.
Read takes the TOML configuration file at `path`, parses it into `dest` and then uses github.com/asaskevich/govalidator to validate the struct.
SetDuration converts a command line int to a duration, and stores it in the final config.
SetDurationMinutes converts a command line minutes value to a duration, and stores it in the final config.
SetOptionalString converts a command line uint to a *string where the nil value indicates the flag was not explicitly set.
SetOptionalUint converts a command line uint to a *uint where the nil value indicates the flag was not explicitly set.
SetURL converts a command line string to a URL, and stores it in the final config.

# Structs

ConfigOption is a complete description of the configuration of a command line option.
InvalidConfigError is the error that is returned when an invalid configuration is encountered by the `Read` func.
TLS represents a common configuration snippet for configuring TLS in a server process.

# Type aliases

ConfigOptions is a group of ConfigOptions that can be for convenience initialized and set at the same time.