# Go spf13 viper

> Golang configuration library using spf13/viper, layered precedence (flag > env > file > KV > default), BindPFlag/BindPFlags.

- Page: https://youraiskill.com/skill/samber-golang-spf13-viper
- What it does: Golang configuration library using spf13/viper — layered precedence (flag > env > file > KV > default), BindPFlag/BindPFlags, SetEnvPrefix + SetEnvKeyReplacer + AutomaticEnv, ReadInConfig + ConfigFileNotFoundError, Unmarshal + mapstructure struct tags, Sub for sub-trees, WatchConfig + OnConfigChange for hot reload, viper.New() for test isolation, and remote KV integration. Apply when using or adopting spf13/viper, or when the codebase imports `github.com/spf13/viper`. For CLI command structure alongside viper, see the `samber/cc-skills-golang@golang-spf13-cobra` skill. For general CLI architecture, see `samber/cc-skills-golang@golang-cli`.
- Niches: coding
- Licence: MIT
- Status: Free on GitHub: not rated 7 or higher by Claude yet, or it does something a person should look at first (for example runs programs or calls the internet), or its licence or authorship needs a look. Never sold.
- Contents: instructions and reference files only (7 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
