trakr/server/utils.go

12 lines
156 B
Go

package server
import "os"
func getenv(key, fallback string) string {
value := os.Getenv(key)
if len(value) == 0 {
return fallback
}
return value
}