diff options
| author | Dave Collins <[email protected]> | 2013-03-08 19:54:27 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-03-08 19:55:04 -0600 |
| commit | 471552e81e198e81193f3b19abb61f901a27710a (patch) | |
| tree | 380c1eacc578a9e6083e4c75c26b78f683e64efe /spew/dump.go | |
| parent | f92eb047c3b8c66afd229a106e185f8481ee1b42 (diff) | |
Modify printInt and printUint to accept base.
This paves the way to improve how byte arrays are output as well as
increases the flexibily of the functions.
Diffstat (limited to 'spew/dump.go')
| -rw-r--r-- | spew/dump.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spew/dump.go b/spew/dump.go index 57572c6..779bace 100644 --- a/spew/dump.go +++ b/spew/dump.go @@ -182,10 +182,10 @@ func (d *dumpState) dump(v reflect.Value) { printBool(d.w, v.Bool()) case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: - printInt(d.w, v.Int()) + printInt(d.w, v.Int(), 10) case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: - printUint(d.w, v.Uint()) + printUint(d.w, v.Uint(), 10) case reflect.Float32: printFloat(d.w, v.Float(), 32) |
