diff options
| author | Dave Collins <[email protected]> | 2013-01-14 00:23:18 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-01-14 00:23:18 -0600 |
| commit | bd6dd81322b66eccef9732c649f1ea46010f7ebc (patch) | |
| tree | 2cbefb067d0fcffcade1133a48db9349e11b2602 /spew/common.go | |
| parent | 638b62b9f5f2cc0f2f601fb5b957715056c5e335 (diff) | |
Use writer directly in formatter.
Write directly to the fmt.State output writer to avoid the overhead
of a buffer in the formatter code.
Diffstat (limited to 'spew/common.go')
| -rw-r--r-- | spew/common.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spew/common.go b/spew/common.go index d389ccb..0704831 100644 --- a/spew/common.go +++ b/spew/common.go @@ -76,8 +76,8 @@ var ( openBraceBytes = []byte("{") openBraceNewlineBytes = []byte("{\n") closeBraceBytes = []byte("}") - closeBraceNewlinBytes = []byte("}\n") asteriskBytes = []byte("*") + colonBytes = []byte(":") colonSpaceBytes = []byte(": ") openParenBytes = []byte("(") closeParenBytes = []byte(")") @@ -89,6 +89,8 @@ var ( circularBytes = []byte("<already shown>") circularShortBytes = []byte("<shown>") invalidAngleBytes = []byte("<invalid>") + openBracketBytes = []byte("[") + closeBracketBytes = []byte("]") percentBytes = []byte("%") precisionBytes = []byte(".") openAngleBytes = []byte("<") |
