Browse Source

Update doc.go/README.md with new config options.

Dave Collins 9 years ago
parent
commit
bae5ef75ff
2 changed files with 18 additions and 0 deletions
  1. 9 0
      README.md
  2. 9 0
      spew/doc.go

+ 9 - 0
README.md

@@ -160,6 +160,15 @@ options. See the ConfigState documentation for more details.
 	App Engine or with the "safe" build tag specified.
 	App Engine or with the "safe" build tag specified.
 	Pointer method invocation is enabled by default.
 	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
 * ContinueOnMethod
 	Enables recursion into types after invoking error and Stringer interface
 	Enables recursion into types after invoking error and Stringer interface
 	methods. Recursion after method invocation is disabled by default.
 	methods. Recursion after method invocation is disabled by default.

+ 9 - 0
spew/doc.go

@@ -91,6 +91,15 @@ The following configuration options are available:
 		which only accept pointer receivers from non-pointer variables.
 		which only accept pointer receivers from non-pointer variables.
 		Pointer method invocation is enabled by default.
 		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
 	* ContinueOnMethod
 		Enables recursion into types after invoking error and Stringer interface
 		Enables recursion into types after invoking error and Stringer interface
 		methods. Recursion after method invocation is disabled by default.
 		methods. Recursion after method invocation is disabled by default.