Added graceful shutdown

This commit is contained in:
Eduard Urbach 2024-03-12 22:31:45 +01:00
parent 784c4e85fb
commit 1592310738
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 116 additions and 31 deletions

View file

@ -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