2022-12-28 11:57:58 -05:00

17 lines
205 B
Go

package env
import (
"fmt"
"os"
)
func RunChecks() {
checkEnv("APP_URL")
}
func checkEnv(key string) {
if os.Getenv(key) == "" {
panic(fmt.Sprintf("Environment variable %s is not set", key))
}
}