all repos — homestead @ 028aae24db5da9ebc1427e81b82ed664f3b79647

Code for my website

shared/env/env.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
package env

import (
	"os"
)

func GetEnvFallback(key, fallback string) string {
	if value, found := os.LookupEnv(key); found {
		return value
	}

	return fallback
}