Closed
Description
GORM Playground Link
Description
`import (
"log"
"my-portfolio-api/config"
"my-portfolio-api/models"
"gorm.io/driver/postgres"
"gorm.io/gorm"
)`
db, err := gorm.Open(postgres.New(postgres.Config{ DSN: config.DBURL, DriverName: config.DBDRIVER, }), &gorm.Config{})
I'm still getting the error "sql: unknown driver "postgres" (forgotten import?)". I'm getting error. How to fix it?