diff options
| author | Jeff Carr <[email protected]> | 2019-06-06 20:55:21 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-06 20:55:21 -0700 |
| commit | a12da586e9eb271ea31365257399fda8437dd3ea (patch) | |
| tree | 17d629a9e8acb9ce12892ea8dbcd1bd828cc8b16 /chomp.go | |
| parent | 93d3e13acc00e5b2e6f3dcc4ae6e12ef86b63e8b (diff) | |
handle int64
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'chomp.go')
| -rw-r--r-- | chomp.go | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -61,15 +61,11 @@ func Chomp(a interface{}) string { return perlChomp(s) case uint64: log.Printf("shell.Chomp() FOUND []uint64") - var tmp uint64 - tmp = a.(uint64) - s := string(tmp) + s := fmt.Sprintf("%d", a.(uint64)) return perlChomp(s) case int64: - log.Printf("shell.Chomp() FOUND []uint64") - var tmp int64 - tmp = a.(int64) - s := string(tmp) + log.Printf("shell.Chomp() FOUND []int64") + s := fmt.Sprintf("%d", a.(int64)) return perlChomp(s) case *bytes.Buffer: log.Printf("shell.Chomp() FOUND *bytes.Buffer") |
