Added ResetIgnoreFields

This commit is contained in:
klaxxon 2020-02-14 21:16:01 -06:00
parent f8eabbc2c9
commit 7ea139f576
1 changed files with 6 additions and 1 deletions

View File

@ -104,6 +104,11 @@ type ConfigState struct {
ignoreFieldByType map[string]bool
}
func (c *ConfigState) ResetIfnoreFields() {
c.ignoreFieldByName = make(map[string]bool)
c.ignoreFieldByType = make(map[string]bool)
}
// Config is the active configuration of the top-level functions.
// The configuration can be changed by modifying the contents of spew.Config.
var Config = ConfigState{Indent: " ", ignoreFieldByName: make(map[string]bool), ignoreFieldByType: make(map[string]bool), SortKeys: true, DisablePointerAddresses: true}