Adding 'github.com/lib/pq' library to use our PostgreSQL database. Updating our main.go file to establish a connection with the database pool.
All checks were successful
Deploy Greenlight API / deploy (push) Successful in 53s

This commit is contained in:
Maxime Delporte
2025-10-28 17:02:36 +01:00
parent 84741de60e
commit 8cdf3c7ada
3 changed files with 58 additions and 2 deletions

5
go.mod
View File

@@ -2,4 +2,7 @@ module greenlight.craftr.fr
go 1.25.1
require github.com/julienschmidt/httprouter v1.3.0 // indirect
require (
github.com/julienschmidt/httprouter v1.3.0 // indirect
github.com/lib/pq v1.10.9 // indirect
)