App init and graceful watch lib recommendations ?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. appctl

    Application Controller

    Is there any lib to init the app (read config from yaml, db.. ) and control it's gracefully shutdown? I found this one https://github.com/iv-menshenin/appctl - which doesn't have init thing, but instead has ping service. Was wondering are there any de facto standard libs to do that ?

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. koanf

    Simple, extremely lightweight, extensible, configuration management library for Go. Supports JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.

    For configuration, I like Koanf.

  4. fx

    A dependency injection based application framework for Go. (by uber-go)

    I’m not sure of much that can do all of that - maybe it’s a use case for https://github.com/uber-go/fx

  5. run

    A universal mechanism to manage goroutine lifecycles (by oklog)

    What I’ve done in the past is use a run group (like https://github.com/oklog/run ) and one of the goroutines in the group is just listening for a SIGINT/SIGTERM/etc. When it sees that it throws an error which cancels the root context and let’s each component handle its own graceful shutdown

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Golang with google wire

    2 projects | dev.to | 13 Jun 2025
  • Dependency Injection in Go: Comparing Wire, Dig, Fx & More

    5 projects | dev.to | 5 Feb 2025
  • Do: A dependency injection toolkit based on Go 1.18 Generics

    1 project | news.ycombinator.com | 24 Jul 2024
  • @Autowired magic in SpringBoot

    1 project | dev.to | 16 Jun 2024
  • Dependency Injection: A Straightforward Implementation in Golang

    1 project | dev.to | 10 May 2024

Did you know that Go is
the 4th most popular programming language
based on number of references?