This commit is contained in:
parent
621c529384
commit
51e9830876
2
main.go
2
main.go
@ -14,7 +14,7 @@ func main() {
|
|||||||
dsn := os.Getenv("DSN")
|
dsn := os.Getenv("DSN")
|
||||||
|
|
||||||
if dsn == "" {
|
if dsn == "" {
|
||||||
panic("db connection string should be set with the DSN env variable!")
|
panic("db connection string should be set with the DSN env variable!!")
|
||||||
}
|
}
|
||||||
|
|
||||||
db, err := sql.Open("postgres", dsn)
|
db, err := sql.Open("postgres", dsn)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user