Skip to content
G

golang-spf13-viper

Golang configuration library using spf13/viper

by samberFree

Launch
#3558in AI Skills
0In stores

Description

golang-spf13-viper is an agent skill for configuration in Go with the spf13/viper library. Viper reads values from several sources and resol…

Highlights

  • Layered precedence: flag, env, file, KV, default
  • BindPFlag and BindPFlags for flags
  • SetEnvPrefix and SetEnvKeyReplacer for env vars
  • One API for every configuration layer

Ratings & Reviews

No ratings yet

Be the first to rate golang-spf13-viper.

People also visit

S

setup-matt-pocock-skills

Configuration scaffold for engineering skills to locate issue tracker

AI Skills
Launch
C

config-gc

Garbage collection for your Claude Code configuration

AI Skills
Launch
C

configure-ecc

Run the conversational ECC setup wizard inside the current harness: inventory

AI Skills
Launch
G

golang-patterns

Idiomatic Go patterns, best practices, and conventions for building robust

AI Skills
Launch
G

golang-testing

Go testing patterns including table-driven tests, subtests, benchmarks, fuzzing

AI Skills
Launch
S

security-scan

Scan your Claude Code configuration

AI Skills
Launch

golang-spf13-viper FAQ

What does golang-spf13-viper do?

It guides an agent to set up layered configuration in a Go program with the spf13/viper library.

What is the order of precedence?

A flag beats an environment variable, which beats a file, which beats a key-value store, which beats a default.

Does viper parse commands or flags?

No. Viper defines no commands or flags. The skill notes that cobra handles command-line parsing.

How do flags and env vars connect?

The skill covers BindPFlag and BindPFlags for flags, and SetEnvPrefix with SetEnvKeyReplacer for environment variables.

How do I install it?

Run: npx skills add https://github.com/samber/cc-skills-golang --skill golang-spf13-viper

What security audits has it passed?

Gen Agent Trust Hub, Socket and Snyk all passed.

What are the best golang-spf13-viper alternatives?

Popular alternatives to golang-spf13-viper include setup-matt-pocock-skills, config-gc and configure-ecc. See all golang-spf13-viper alternatives

Developer Stuff

Badges