Hacker GitHub

← All repos

spf13/viper

View on GitHub ↗ ★ 30,498 Go

Go configuration with fangs

19 mentions on Hacker News by 18 people: 3 stories, 16 comments · first 2017-09-07 · latest 2026-07-16

Mentions per year 19 mentions · busiest year 2022 (7)
20082026
  1. …need to touch after "stabilizing" them. Great public examples: the Go standard library, https://github.com/spf13/viper , https://github.com/uber-go/zap . Viper and zap combined are more than 20,000 lines of code (according to cloc) that I…
    comment by solatic · 2026-07-16 · in The Tower Keeps Rising
  2. Sounds similar to https://github.com/spf13/viper
    comment by HL33tibCe7 · 2023-02-10 · in Use TOML for `.env` Files?
  3. …He pushed hugo and viper in 2013-2014: https://github.com/gohugoio/hugo/commits/v0.7 , viper: https://github.com/spf13/viper/commit/98be071 Steve is a very accomplished programmer, with what hugo / viper became in the go ecosystem by…
    comment by tony · 2022-07-18 · in Spf13 is leaving Google
  4. …dependencies into the core, significantly bloating build sizes. No separation or abstraction. [1] https://github.com/spf13/viper/pull/635 [2] https://github.com/knadh/koanf#alternative-to-viper
    comment by knadh · 2022-05-23 · in Viper – Go Configuration with Fangs
  5. https://github.com/spf13/viper/blob/master/go.mod 16 direct dependencies, 39 transitive dependencies, and nearly 7000 lines of code -- for a package that handles flags and config files. I can't help feeling that frameworks like this are a…
    comment by nemo1618 · 2022-05-23 · in Viper – Go Configuration with Fangs
  6. The dependency that was dropped has many dependencies that would get added to your project. https://github.com/spf13/viper/blob/master/go.mod
  7. …the proliferation of dependencies, and what to do about them, in viper's issue tracker [3] [4] [1] https://github.com/spf13/viper [2] this may or may not actually happen, depending on which function calls you actually use and what the…
    comment by shoo · 2022-01-28 · in Can I have a smaller Prometheus
  8. …have to copy config by value and then put a mutex on that, then handle reads and writes separately. https://github.com/spf13/viper#is-it-safe-to-concurrently-re...
    comment by snupples · 2021-07-12 · in Updating the Go Memory Model
  9. viper, which nicely handles env vars, also can watch for config changes: https://github.com/spf13/viper#watching-and-re-reading-confi... if you're rotating creds or need to open/close the DB, this will typically just add another select…
    comment by maximente · 2021-07-12 · in Updating the Go Memory Model
  10. …and argument. This is exactly what the most widely used golang configuration library does: https://github.com/spf13/viper
  11. For configuration management, I've found viper[1] to be quite handy. [1]: https://github.com/spf13/viper
    comment by vishnumohandas · 2020-11-07 · in Go in Production – Lessons Learned
  12. …non-standard quirks. [1] https://github.com/spf13/pflag [2] https://github.com/spf13/cobra [3] https://github.com/spf13/viper
    comment by programd · 2020-08-01 · in Conventions for Command Line Options
  13. …My own rule of thumb is: 1) sensible default value 2) read from file 3) read from env Examples: - https://github.com/spf13/viper - https://docs.spring.io/spring-boot/docs/current/reference/ht...
  14. …is the best CLI templating system, especially because of how well it pairs with https://github.com/spf13/viper . Large projects like Hugo and Kubernetes have used Cobra to build their CLI tools, and it's fairly light as well even if you n
  15. …overhead, that'd be my preference. There are a few popular Go libraries which support that, like https://github.com/spf13/viper - which we'll probably consider switching to as part of a general CLI overhaul. For a long time now we've been…
  16. …Routing - https://github.com/go-chi/chi Command flags - https://github.com/spf13/pflag Config - https://github.com/spf13/viper Logging - https://github.com/Sirupsen/logrus Metrics - https://github.com/prometheus/client_golang/prometheus…