Setup and run go linters

This commit is contained in:
2024-09-29 22:12:58 +02:00
parent b20c66d257
commit a8da48b557
5 changed files with 57 additions and 16 deletions

View File

@@ -24,7 +24,11 @@ func main() {
if err != nil {
log.Fatal(err)
}
defer database.Close()
defer func() {
if err := database.Close(); err != nil {
log.Printf("Error closing database: %v", err)
}
}()
// Workdir
workdir := os.Getenv("NOVAMD_WORKDIR")