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.
()
| 294 | // In the public interface for the viper package so applications |
| 295 | // can use it in their testing as well. |
| 296 | func 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. |
| 304 | var SupportedExts = []string{"json", "toml", "yaml", "yml", "properties", "props", "prop", "hcl", "tfvars", "dotenv", "env", "ini"} |