2020-07-09 19:30:59 +00:00
|
|
|
/*
|
2020-09-16 14:05:51 +00:00
|
|
|
Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
2020-07-09 19:30:59 +00:00
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
package library
|
|
|
|
|
|
|
|
import "github.com/davecgh/go-spew/spew"
|
|
|
|
|
|
|
|
func Sdump(a ...interface{}) string {
|
|
|
|
config := spew.ConfigState{
|
|
|
|
Indent: "\t",
|
|
|
|
MaxDepth: 10, // prevent log explosion
|
|
|
|
DisableMethods: true,
|
|
|
|
DisablePointerMethods: true,
|
|
|
|
DisablePointerAddresses: true,
|
|
|
|
DisableCapacities: true,
|
|
|
|
ContinueOnMethod: true,
|
|
|
|
SortKeys: true,
|
|
|
|
SpewKeys: true,
|
|
|
|
}
|
|
|
|
return config.Sdump(a...)
|
|
|
|
}
|