go.mod update priv git url
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user