Lint with golangci-lint; Fix linter issues; Add Go 1.12 to CircleCI

This commit is contained in:
DarthSim
2019-04-11 20:07:09 +06:00
parent 2e6296c4d9
commit d5b7e2aa13
9 changed files with 101 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ import (
"os/signal"
"runtime"
"runtime/debug"
"syscall"
"time"
"net/http"
@@ -39,7 +40,7 @@ func main() {
s := startServer()
stop := make(chan os.Signal, 1)
signal.Notify(stop, os.Interrupt, os.Kill)
signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM)
<-stop