This commit is contained in:
parent
1015670704
commit
6e40c8b56b
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -47,7 +47,7 @@ func main() {
|
||||||
|
|
||||||
// Connect to PostgreSQL
|
// Connect to PostgreSQL
|
||||||
pgConnStr := os.Getenv("PG_DB")
|
pgConnStr := os.Getenv("PG_DB")
|
||||||
db, err = sql.Open("postgres", pgConnStr)
|
db, err := sql.Open("postgres", pgConnStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue