mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 14:18:12 +00:00
19 lines
240 B
Go
19 lines
240 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"wallet-api/pkg/migrate"
|
|
"wallet-api/pkg/utl/db"
|
|
|
|
"github.com/joho/godotenv"
|
|
)
|
|
|
|
func main() {
|
|
godotenv.Load()
|
|
|
|
dbUrl := os.Getenv("DATABASE_URL")
|
|
|
|
conn := db.CreateConnection(dbUrl)
|
|
migrate.Start(conn)
|
|
}
|