In Golang a service is a program that executes specific tasks in response to events or requests. A service must be prepared to stop robustly and intelligently when the time comes. Before a service stops it is important that all the tasks are done, all the connections are closed and no goroutines are running.
Table of contents
How to build a service in GolangWhat is a service?Building a web serverStarting a serviceWaiting the inevitableShutting down the serviceConclusionSort: