From bae5ef75ff3187eed073265fed13837823b40db0 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 29 Oct 2016 15:03:44 -0500 Subject: [PATCH] Update doc.go/README.md with new config options. --- README.md | 9 +++++++++ spew/doc.go | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 556170a..9111977 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,15 @@ options. See the ConfigState documentation for more details. App Engine or with the "safe" build tag specified. Pointer method invocation is enabled by default. +* DisablePointerAddresses + DisablePointerAddresses specifies whether to disable the printing of + pointer addresses. This is useful when diffing data structures in tests. + +* DisableCapacities + DisableCapacities specifies whether to disable the printing of capacities + for arrays, slices, maps and channels. This is useful when diffing data + structures in tests. + * ContinueOnMethod Enables recursion into types after invoking error and Stringer interface methods. Recursion after method invocation is disabled by default. diff --git a/spew/doc.go b/spew/doc.go index 5be0c40..1ee1e5e 100644 --- a/spew/doc.go +++ b/spew/doc.go @@ -91,6 +91,15 @@ The following configuration options are available: which only accept pointer receivers from non-pointer variables. Pointer method invocation is enabled by default. + * DisablePointerAddresses + DisablePointerAddresses specifies whether to disable the printing of + pointer addresses. This is useful when diffing data structures in tests. + + * DisableCapacities + DisableCapacities specifies whether to disable the printing of + capacities for arrays, slices, maps and channels. This is useful when + diffing data structures in tests. + * ContinueOnMethod Enables recursion into types after invoking error and Stringer interface methods. Recursion after method invocation is disabled by default.