Embedding Caddy in Go API server


The following blog gives a good introduction how to use caddy as embedded in a go app.
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!!!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.