Hi,
The following blog gives a good introduction how to use caddy as embedded in a go app.
https://github.com/mholt/caddy/wiki/Embedding-Caddy-in-your-Go-program
However, I am not clear how can I use it in my existing rest API web application. If I want to use the graceful shutdown feature of the caddy to my application, how can I use this embedded library to my existing web app?
A complete short example would be helpfull!!!