updated dependencies and go 1.17

This commit is contained in:
ston1th 2021-09-11 15:39:07 +02:00
commit 76360ddbc2
32 changed files with 434 additions and 174 deletions

View file

@ -71,7 +71,7 @@ func initServer(cfg core.Config) (err error) {
return
}
log.Println("gowiki " + cfg.Version + " started")
sigs := make(chan os.Signal)
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
sig := <-sigs
log.Println("signal: " + sig.String())