AI AGENT ADDONS

Golang Spf13 Viper

samber/cc-skills-golang
Backend & APIs
31,216installs

When you build a Go application you often need to read settings from different places. The spf13/viper library helps you collect these settings from flags, environment variables, configuration files, and defaults. It uses a fixed order called layered precedence to decide which source wins.

You can bind command line flags to viper keys. Then the program checks flags first, then environment variables, then config files, and finally defaults. This makes it easy to override settings without changing code. The library also supports automatic environment variable mapping and hot reloading of config files.

Many Go projects use viper alongside cobra for command line tools. Knowing the right patterns prevents common mistakes such as forgetting to handle missing config files.

Add Golang Spf13 Viper skill to your workflow

Global

mkdir -p ~/.claude/skills/golang-spf13-viper

Project

mkdir -p .claude/skills/golang-spf13-viper

Source Repository

Stars
2,322
Forks
149
Watchers
2,322
License
MIT
Last Push
28 days ago
Created
4 months ago