go.mod update priv git url

This commit is contained in:
2024-05-30 17:01:18 +02:00
parent c454307d56
commit 081e1edd24
6 changed files with 45 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
package config
import (
"fmt"
"os"
"github.com/joho/godotenv"
@@ -15,7 +16,7 @@ func init() {
func GetEnv(name string, defVal string) string {
env := os.Getenv(name)
if env == "" {
return defVal
fmt.Panicln("Missing " + name + " env variable")
}
return env