Added graceful shutdown

This commit is contained in:
2024-03-12 22:31:45 +01:00
parent b3c73282b3
commit 4b6cb6c34f
8 changed files with 116 additions and 31 deletions

View File

@ -1,8 +1,6 @@
package main
import (
"net/http"
"git.akyoto.dev/go/server"
)
@ -13,5 +11,5 @@ func main() {
return ctx.String("Hello")
})
http.ListenAndServe(":8080", s)
s.Run(":8080")
}