mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
removed fatal env file error
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"wallet-api/pkg/migrate"
|
||||
"wallet-api/pkg/utl/db"
|
||||
@@ -10,11 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
err := godotenv.Load()
|
||||
if err != nil {
|
||||
log.Fatal("Error loading .env file")
|
||||
}
|
||||
godotenv.Load()
|
||||
|
||||
dbUrl := os.Getenv("DATABASE_URL")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user