Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigOption ¶
type ConfigOption func(*Configuration) error
ConfigOption defines a type of function to configures the Config.
func WithFlags ¶
func WithFlags() ConfigOption
WithFlags parses the command line, and populates the configuration.
type Configuration ¶
type Configuration struct { ConfigPath string // contains filtered or unexported fields }
Configuration represents the configuration as set by command-line flags. All variables will be set, unless explicitly noted.
func GetConfigFromContext ¶
func GetConfigFromContext(ctx context.Context) *Configuration
func NewConfig ¶
func NewConfig(ctx context.Context, opts ...ConfigOption) (*Configuration, error)
NewConfig creates a new Config.
Click to show internal directories.
Click to hide internal directories.