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

Function Reset

viper.go:296–301  ·  view source on GitHub ↗

Reset is intended for testing, will reset all to default settings. In the public interface for the viper package so applications can use it in their testing as well.

()

Source from the content-addressed store, hash-verified

294// In the public interface for the viper package so applications
295// can use it in their testing as well.
296func Reset() {
297 v = New()
298 SupportedExts = []string{"json", "toml", "yaml", "yml", "properties", "props", "prop", "hcl", "tfvars", "dotenv", "env", "ini"}
299
300 resetRemote()
301}
302
303// SupportedExts are universally supported extensions.
304var SupportedExts = []string{"json", "toml", "yaml", "yml", "properties", "props", "prop", "hcl", "tfvars", "dotenv", "env", "ini"}

Callers 1

TestBindFlagValueSetFunction · 0.85

Calls 2

NewFunction · 0.85
resetRemoteFunction · 0.85

Tested by 1

TestBindFlagValueSetFunction · 0.68