Our great sponsors
-
-
koanf
Simple, lightweight, extensible, configuration management library for Go. Support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.
Came across this the other day https://github.com/knadh/koanf as an alternative to Viper.
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
-
We switched all our cli tools from cobra/viper to kong. I can highly recommend it. Almost no deps and easy to use, a great replacement for cobra in my opinion.
-
AFAIK there is currently no support for this out of the box. However, you could try out kongplete. I didn't have time to try it for one of my projects but it looks promising.
-
I love Cobra and I love Viper. They are great projects, incredibly useful and outstandingly important for the Go community. But sometimes, just sometimes, don't you wish you could use Cobra without the entire dependency chain Viper drags in?
-
Cobra is used in many Go projects such as Kubernetes, Hugo, and Github CLI to name a few. [This list](./projects_using_cobra.md) contains a more extensive list of projects using Cobra.
-
I love Cobra and I love Viper. They are great projects, incredibly useful and outstandingly important for the Go community. But sometimes, just sometimes, don't you wish you could use Cobra without the entire dependency chain Viper drags in?
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
-
Cobra is used in many Go projects such as Kubernetes, Hugo, and Github CLI to name a few. [This list](./projects_using_cobra.md) contains a more extensive list of projects using Cobra.
-
Cobra is used in many Go projects such as Kubernetes, Hugo, and Github CLI to name a few. [This list](./projects_using_cobra.md) contains a more extensive list of projects using Cobra.
-
Flag functionality is provided by the pflag library, a fork of the flag standard library which maintains the same interface while adding POSIX compliance.
Related posts
- Building and distributing a command line tool in Golang
- I made a twitter bot, who posts daily rankings of the best 10 players in the LEC (League of Legends)
- Recommended framework/library for creating cli apps in go?
- I'm looking for a good alternativ to Viper
- Ask HN: What libraries does go have for building interactive shells?