diff options
| author | David Hill <[email protected]> | 2016-11-23 15:24:26 -0500 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2017-07-11 11:24:36 -0500 |
| commit | 9fadf46324c4cfc36cc82310ca92ded38af91249 (patch) | |
| tree | 7ee45c2a10640ab30ad0f169bad9c2b87d12bc16 /spew/dump.go | |
| parent | e250ec7f597aa5cd2c9f38b9cbf3dbc81cc1e3bb (diff) | |
travis: Use gometalinter
Diffstat (limited to 'spew/dump.go')
| -rw-r--r-- | spew/dump.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spew/dump.go b/spew/dump.go index df1d582..f78d89f 100644 --- a/spew/dump.go +++ b/spew/dump.go @@ -35,16 +35,16 @@ var ( // cCharRE is a regular expression that matches a cgo char. // It is used to detect character arrays to hexdump them. - cCharRE = regexp.MustCompile("^.*\\._Ctype_char$") + cCharRE = regexp.MustCompile(`^.*\._Ctype_char$`) // cUnsignedCharRE is a regular expression that matches a cgo unsigned // char. It is used to detect unsigned character arrays to hexdump // them. - cUnsignedCharRE = regexp.MustCompile("^.*\\._Ctype_unsignedchar$") + cUnsignedCharRE = regexp.MustCompile(`^.*\._Ctype_unsignedchar$`) // cUint8tCharRE is a regular expression that matches a cgo uint8_t. // It is used to detect uint8_t arrays to hexdump them. - cUint8tCharRE = regexp.MustCompile("^.*\\._Ctype_uint8_t$") + cUint8tCharRE = regexp.MustCompile(`^.*\._Ctype_uint8_t$`) ) // dumpState contains information about the state of a dump operation. @@ -143,10 +143,10 @@ func (d *dumpState) dumpPtr(v reflect.Value) { // Display dereferenced value. d.w.Write(openParenBytes) switch { - case nilFound == true: + case nilFound: d.w.Write(nilAngleBytes) - case cycleFound == true: + case cycleFound: d.w.Write(circularBytes) default: |
