Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Env cfg = func() cfg { if err := godotenv.Overload(); err != nil { log.Fatal("Error loading .env file: ", err) } return cfg{ Host: getEnv("HOST", "http://localhost"), Port: getEnv("PORT", ":8080"), DBUser: dbUser, DBName: dbName, DBConnStr: fmt.Sprintf( "user=%s dbname=%s password==%s sslmode=disable", dbUser, dbName, dbPassword), } }()
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.