Mise à jour de 'main.go'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
29f51fe8db
commit
99cf56ecd1
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