Skip to content
G

golang-spf13-viper

Golang configuration library using spf13/viper

by samberFree

#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

G

golang-spf13-cobra

Golang CLI command tree library using spf13/cobra

AI Skills
Get
G

golang-cli

Golang CLI application development

AI Skills
Get
G

golang-how-to

Golang skills orchestrator

AI Skills
Get
G

golang-samber-do

Dependency injection in Golang using samber/do

AI Skills
Get
G

golang-google-wire

Compile-time dependency injection in Golang using google/wire

AI Skills
Get
G

golang-uber-dig

Implements dependency injection in Golang using uber-go/dig

AI Skills
Get

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 golang-spf13-cobra, golang-cli and golang-how-to. See all golang-spf13-viper alternatives

Developer Stuff

Badges