Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DATA string
-X 'github.com/fox-one/pkg/config.DATA=$(DATA)'
Functions ¶
func AutomaticLoadEnv ¶
func AutomaticLoadEnv(prefix string)
load os environments to viper defaults with prefix "fox" FOX_DB__NAME -> db.name FOX_DB__BROKER_ID -> db.broker_id
func SetDefault ¶
func SetDefault(key string, value interface{})
func SetDefaults ¶
func SetDefaults(defaults H)
Types ¶
Click to show internal directories.
Click to hide internal directories.