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
20082026
-
…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
Show HN: CREV – A Go-based CLI tool for AI code reviews and codebase exportsstory by elpookie · 2024-10-06 · 0 comments
-
Sounds similar to https://github.com/spf13/viper
comment by HL33tibCe7 · 2023-02-10 · in Use TOML for `.env` Files? -
▲ 3
Viper: Go Configuration with Fangsstory by thunderbong · 2022-08-29 · 0 comments
-
…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 -
…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 -
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 -
▲ 10
Viper – Go Configuration with Fangsstory by maydemir · 2022-05-21 · 3 comments
-
The dependency that was dropped has many dependencies that would get added to your project. https://github.com/spf13/viper/blob/master/go.mod
comment by lbhdc · 2022-02-04 · in Coral, a Cobra fork with nearly all its features, but only 4 dependencies -
…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 -
…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 -
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 -
…and argument. This is exactly what the most widely used golang configuration library does: https://github.com/spf13/viper
comment by CGamesPlay · 2021-04-01 · in Don’t use environment variables for configuration -
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 -
…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 -
…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...
comment by xiwenc · 2020-07-13 · in Don't use ENV variables for secret data (2017) -
…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
comment by dashwav · 2020-05-27 · in Diving into Go by building a CLI application -
…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…
comment by vito · 2019-12-20 · in GitHub Actions is my new favorite free programming tool [video] -
…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…
comment by programd · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production?