httprun
is a package that provides a way to start and gracefully shut down an
HTTP server.
This allows you to delegate the management of a running server to this package
and focus on your own cancellation strategy by using a standard
context.Context
.
go get github.com/francescomari/httprun
Read the documentation here.
This library is licensed under MIT.