service: go fmt comments

This commit is contained in:
Daniel Theophanes
2024-06-13 08:31:55 -05:00
parent 9832e01049
commit 4ac50d86f3
7 changed files with 86 additions and 51 deletions

View File

@@ -16,7 +16,8 @@ import (
var logger service.Logger
// Program structures.
// Define Start and Stop methods.
//
// Define Start and Stop methods.
type program struct {
exit chan struct{}
}
@@ -54,11 +55,12 @@ func (p *program) Stop(s service.Service) error {
}
// Service setup.
// Define service config.
// Create the service.
// Setup the logger.
// Handle service controls (optional).
// Run the service.
//
// Define service config.
// Create the service.
// Setup the logger.
// Handle service controls (optional).
// Run the service.
func main() {
svcFlag := flag.String("service", "", "Control the system service.")
flag.Parse()