e7b389ae6c
Signed-off-by: Andrew Keesler <akeesler@vmware.com>
24 lines
584 B
Go
24 lines
584 B
Go
/*
|
|
Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
|
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...)
|
|
}
|