Text version of the code is available here Stopping HTTP Server Gracefully: Context vs Channels vs SyncGroup
February 2, 2020 * Go * 9 minutes to read Complete code can be found at…www.gollahalli.com I am developing a CLI application that requires it to authenticate and obtain a token from an API. I had a problem of gracefully shutting down the HTTP server from another function (handle), in this case, after a token is received. Go…