summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Collins <[email protected]>2013-01-08 23:55:23 -0600
committerDave Collins <[email protected]>2013-01-08 23:55:23 -0600
commitf83c4528997c18af3afbbe70309155707f556fee (patch)
tree11444553e222bdd228238b6ac0947a0f69e1af49
parent948e0316453d9334644088984539d2e9c9da0b8c (diff)
Update README.md
-rw-r--r--README.md30
1 files changed, 21 insertions, 9 deletions
diff --git a/README.md b/README.md
index f621865..668f56b 100644
--- a/README.md
+++ b/README.md
@@ -45,15 +45,27 @@ spew.Fprintf(someWriter, "myVar1: %v -- myVar2: %+v", myVar1, myVar2)
## Sample Dump Output
```
- (main.Foo) {
- unexportedField: (*main.Bar)(0xf84002e210)({
- flag: (main.Flag) flagTwo,
- data: (uintptr) <nil>
- }),
- ExportedField: (map[interface {}]interface {}) {
- (string) "one": (bool) true
- }
- }
+(main.Foo) {
+ unexportedField: (*main.Bar)(0xf84002e210)({
+ flag: (main.Flag) flagTwo,
+ data: (uintptr) <nil>
+ }),
+ ExportedField: (map[interface {}]interface {}) {
+ (string) "one": (bool) true
+ }
+}
+```
+
+## Sample Formatter Output
+
+Double pointer to a uint8 via %v:
+```
+ <**>5
+```
+
+Circular struct with a uint8 field and a pointer to itself via %+v:
+```
+ {ui8:1 c:<*>(0xf84002d200){ui8:1 c:<*>(0xf84002d200)<shown>}}
```
## License