@samber/golang-spf13-viper

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`.

View in AI SkillSafe app
Scanned · no findings
30782 downloads
0 stars
0 demos
SKILL.md

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@samber/golang-spf13-viper/verified)](https://skillsafe.ai/skill/@samber/golang-spf13-viper/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@samber/golang-spf13-viper/installs)](https://skillsafe.ai/skill/@samber/golang-spf13-viper/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@samber/golang-spf13-viper/scan)](https://skillsafe.ai/skill/@samber/golang-spf13-viper/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@samber/golang-spf13-viper/eval)](https://skillsafe.ai/skill/@samber/golang-spf13-viper/)