MCPcopy
hub / github.com/spf13/viper / DebugTo

Method DebugTo

viper.go:2069–2077  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

2067func (v *Viper) Debug() { v.DebugTo(os.Stdout) }
2068
2069func (v *Viper) DebugTo(w io.Writer) {
2070 fmt.Fprintf(w, "Aliases:\n%#v\n", v.aliases)
2071 fmt.Fprintf(w, "Override:\n%#v\n", v.override)
2072 fmt.Fprintf(w, "PFlags:\n%#v\n", v.pflags)
2073 fmt.Fprintf(w, "Env:\n%#v\n", v.env)
2074 fmt.Fprintf(w, "Key/Value Store:\n%#v\n", v.kvstore)
2075 fmt.Fprintf(w, "Config:\n%#v\n", v.config)
2076 fmt.Fprintf(w, "Defaults:\n%#v\n", v.defaults)
2077}

Callers 2

DebugMethod · 0.95
DebugToFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected