Added graceful shutdown
This commit is contained in:
parent
784c4e85fb
commit
1592310738
8 changed files with 116 additions and 31 deletions
|
@ -33,7 +33,7 @@ s.Get("/images/*file", func(ctx server.Context) error {
|
|||
return ctx.String(ctx.Get("file"))
|
||||
})
|
||||
|
||||
http.ListenAndServe(":8080", s)
|
||||
s.Run(":8080")
|
||||
```
|
||||
|
||||
## Tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue