Added ResetIgnoreFields
This commit is contained in:
parent
f8eabbc2c9
commit
7ea139f576
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue