package config import ( "log" "os" ) func GetNatsURI() string { return getEnvVariable("NATSURI") } func GetDollarServiceURL() string { return getEnvVariable("DOLLAR_SERVICE_URL") } func GetEnvironment() string { return getEnvVariable("ENV") } func getEnvVariable(key string) string { if os.Getenv(key) == "" { log.Fatal("error getting key", key) } return os.Getenv(key) }