Hi! We have a weird use case where we need to stop an entire router from listening. I've looked through the source and only see code for running it. This isn't specific to go but I think this is what i'm talking about: http://www.hydrogen18.com/blog/stop-listening-http-server-go.html

Comment From: RyanCopley

tl;dr read documentation

Comment From: ralph327

What was your solution?

Comment From: Alex-Addy

For future people that find this issue through google: go to https://github.com/gin-gonic/gin#graceful-restart-or-stop

Comment From: kazhuravlev

upd https://github.com/gin-gonic/gin#graceful-shutdown-or-restart

Comment From: CorentinB

Updated link: https://github.com/gin-gonic/gin/blob/master/docs/doc.md#graceful-shutdown-or-restart