June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package envvar import ( "encoding/json" "os" "github.com/kelseyhightower/envconfig" "github.com/pkg/errors" ) // LoadConfig will load files optionally from the json file // stored at path, then will override those values based on the // envconfig struct tags. The envPrefix is how we prefix our // environment variables. func LoadConfig(path, envPrefix ...Read now
Unlock full access