Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Db dbConf Server serverConf }
func AppConfig ¶
func AppConfig() *Conf
AppConfig Setup and install the applications' configuration environment variables
Example ¶
type exampleStruct struct { String string `env:"STRING"` } os.Setenv("STRING", "an example string!") var e exampleStruct err := envdecode.StrictDecode(&e) if err != nil { panic(err) } // if STRING is set, e.String will contain its value fmt.Println(e.String)
Output: an example string!
Click to show internal directories.
Click to hide internal directories.