Added graceful shutdown
This commit is contained in:
parent
784c4e85fb
commit
1592310738
8 changed files with 116 additions and 31 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue