Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromEnv ¶
func FromEnv(config interface{}) error
FromEnv reads the config from environment variables and parses them to the `config` interface. The provided interface should be a struct tht has envconfig tags defined.
func FromFile ¶
FromFile reads a json config from a file and parses it to the `config` interface. The provided interface should be a struct that has json tags defined. NOTICE: When using a configuration file, the default data from the struct will not work
func InitConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.