diff options
| author | Jeff Carr <[email protected]> | 2019-06-06 20:02:53 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-06 20:02:53 -0700 |
| commit | 93d3e13acc00e5b2e6f3dcc4ae6e12ef86b63e8b (patch) | |
| tree | 8bbd10c54a2cbea54d707eb4c6bfda1609e4a681 /chomp.go | |
| parent | 758e7d157b0a6191f83a5756d561a62a8142010f (diff) | |
move wget into here
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'chomp.go')
| -rw-r--r-- | chomp.go | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -54,10 +54,22 @@ func Chomp(a interface{}) string { return perlChomp(s) case []uint8: log.Printf("shell.Chomp() FOUND []uint8") - var u8s []uint8 - u8s = a.([]uint8) + var tmp []uint8 + tmp = a.([]uint8) - s := string(u8s) + s := string(tmp) + return perlChomp(s) + case uint64: + log.Printf("shell.Chomp() FOUND []uint64") + var tmp uint64 + tmp = a.(uint64) + s := string(tmp) + return perlChomp(s) + case int64: + log.Printf("shell.Chomp() FOUND []uint64") + var tmp int64 + tmp = a.(int64) + s := string(tmp) return perlChomp(s) case *bytes.Buffer: log.Printf("shell.Chomp() FOUND *bytes.Buffer") |
