go-background-svc-template

A template repository for a standalone background service.

APACHE-2.0 License

Stars
0

GO Background SVC Starter Template

What is this?

This is a starter template intended for kick starting a simple background service.

It provides

  1. A top level main that listens for SIGINT and SIGTERM and gracefully closes its database connection and signals to sub routines to exit
  2. Has 2 go routines increment and print, that accept cancellation contexts
  3. Has a simple embedded data store badger
  4. Has a starting point for configuration with a interface wrapper around viper
  5. Has a github workflow
  6. Has a dev container
  7. Has a Dockerfile
  8. Has a Makefile for common tasks such as building, testing, linting
  9. Is automatically updated with renovate renovate.json
Package Rankings
Top 6.5% on Proxy.golang.org