Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns the current configuration value of a key.
If it has no specific value, it falls back to a value of environment variable starting with "FIREWORQ_" and then a default value which is returned from GetDefault.
func GetDefault ¶
GetDefault returns the default configuration value of a key.
func Locally ¶
func Locally(k, v string, block func())
Locally overrides the current configuration value of a key in a block.
This is not goroutine safe and should only be used in tests.
func SetDefault ¶
func SetDefault(k, v string)
SetDefault sets the default configuration value of a key.
Types ¶
type Item ¶
type Item struct { Category string Name string DefaultValue string Label string Description string }
Item describes a configuration key and its default value.
func Descriptions ¶
func Descriptions() []Item
Descriptions returns the default configurations and their descriptions.
Click to show internal directories.
Click to hide internal directories.