GOG - Practice
Mise en place GORM go get -u gorm.io/gorm
go get -u gorm.io/driver/postgres package main import ( “fmt” “gorm.io/driver/postgres” “gorm.io/gorm” “log”
) var DB *gorm.DB func initDatabase() { dsn := “host=localhost user=gormuser password=gormpassword dbname=gormdb port=5432 sslmode=disable TimeZone=Europe/