|
package main
import "os"
var (
EnvironmentVariables = map[string]string{
"LOOP_URL": "localhost:6006",
"LOOP_SALT": "whatyoutalkingaboutwillus",
"LOOP_DATA": ".",
}
)
func ConfigureEnvironment() {
for key, value := range EnvironmentVariables {
env := os.Getenv(key)
if env == "" && value != "" {
os.Setenv(key, value)
}
}
}
func address() string {
return os.Getenv("LOOP_URL")
}
func salt() string {
return os.Getenv("LOOP_SALT")
}
|