diff options
Diffstat (limited to 'vendor/github.com/davecgh/go-spew/spew/dump.go')
-rw-r--r-- | vendor/github.com/davecgh/go-spew/spew/dump.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/github.com/davecgh/go-spew/spew/dump.go b/vendor/github.com/davecgh/go-spew/spew/dump.go index df1d582..f78d89f 100644 --- a/vendor/github.com/davecgh/go-spew/spew/dump.go +++ b/vendor/github.com/davecgh/go-spew/spew/dump.go | |||
@@ -35,16 +35,16 @@ var ( | |||
35 | 35 | ||
36 | // cCharRE is a regular expression that matches a cgo char. | 36 | // cCharRE is a regular expression that matches a cgo char. |
37 | // It is used to detect character arrays to hexdump them. | 37 | // It is used to detect character arrays to hexdump them. |
38 | cCharRE = regexp.MustCompile("^.*\\._Ctype_char$") | 38 | cCharRE = regexp.MustCompile(`^.*\._Ctype_char$`) |
39 | 39 | ||
40 | // cUnsignedCharRE is a regular expression that matches a cgo unsigned | 40 | // cUnsignedCharRE is a regular expression that matches a cgo unsigned |
41 | // char. It is used to detect unsigned character arrays to hexdump | 41 | // char. It is used to detect unsigned character arrays to hexdump |
42 | // them. | 42 | // them. |
43 | cUnsignedCharRE = regexp.MustCompile("^.*\\._Ctype_unsignedchar$") | 43 | cUnsignedCharRE = regexp.MustCompile(`^.*\._Ctype_unsignedchar$`) |
44 | 44 | ||
45 | // cUint8tCharRE is a regular expression that matches a cgo uint8_t. | 45 | // cUint8tCharRE is a regular expression that matches a cgo uint8_t. |
46 | // It is used to detect uint8_t arrays to hexdump them. | 46 | // It is used to detect uint8_t arrays to hexdump them. |
47 | cUint8tCharRE = regexp.MustCompile("^.*\\._Ctype_uint8_t$") | 47 | cUint8tCharRE = regexp.MustCompile(`^.*\._Ctype_uint8_t$`) |
48 | ) | 48 | ) |
49 | 49 | ||
50 | // dumpState contains information about the state of a dump operation. | 50 | // dumpState contains information about the state of a dump operation. |
@@ -143,10 +143,10 @@ func (d *dumpState) dumpPtr(v reflect.Value) { | |||
143 | // Display dereferenced value. | 143 | // Display dereferenced value. |
144 | d.w.Write(openParenBytes) | 144 | d.w.Write(openParenBytes) |
145 | switch { | 145 | switch { |
146 | case nilFound == true: | 146 | case nilFound: |
147 | d.w.Write(nilAngleBytes) | 147 | d.w.Write(nilAngleBytes) |
148 | 148 | ||
149 | case cycleFound == true: | 149 | case cycleFound: |
150 | d.w.Write(circularBytes) | 150 | d.w.Write(circularBytes) |
151 | 151 | ||
152 | default: | 152 | default: |