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

Function SetOptions

viper.go:287–291  ·  view source on GitHub ↗

SetOptions sets the options on the global Viper instance. Be careful when using this function: subsequent calls may override options you set. It's always better to use a local Viper instance.

(opts ...Option)

Source from the content-addressed store, hash-verified

285// Be careful when using this function: subsequent calls may override options you set.
286// It's always better to use a local Viper instance.
287func SetOptions(opts ...Option) {
288 for _, opt := range opts {
289 opt.apply(v)
290 }
291}
292
293// Reset is intended for testing, will reset all to default settings.
294// In the public interface for the viper package so applications

Callers

nothing calls this directly

Calls 1

applyMethod · 0.65

Tested by

no test coverage detected