mirror of
https://github.com/davegallant/rfd-fyi.git
synced 2025-08-05 15:03:38 +00:00
13 lines
154 B
Go
13 lines
154 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func GetEnv(key, fallback string) string {
|
|
if value, ok := os.LookupEnv(key); ok {
|
|
return value
|
|
}
|
|
return fallback
|
|
}
|