diff options
| author | Jeff Carr <[email protected]> | 2019-06-15 19:17:37 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-15 19:17:37 -0700 |
| commit | 3fadcf18a67fe6bc8e5037be4702a0781c5cad47 (patch) | |
| tree | 40f0fe917e23e184ca8d1e7e34038252117fe509 | |
| parent | 2806f41841a3e8599ac44570180e76a3b96b6f05 (diff) | |
quiet Chomp() debugging
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | chomp.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -53,22 +53,22 @@ func Chomp(a interface{}) string { s = a.(string) return perlChomp(s) case []uint8: - log.Printf("shell.Chomp() FOUND []uint8") + // log.Printf("shell.Chomp() FOUND []uint8") var tmp []uint8 tmp = a.([]uint8) s := string(tmp) return perlChomp(s) case uint64: - log.Printf("shell.Chomp() FOUND []uint64") + // log.Printf("shell.Chomp() FOUND []uint64") s := fmt.Sprintf("%d", a.(uint64)) return perlChomp(s) case int64: - log.Printf("shell.Chomp() FOUND []int64") + // 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") + // log.Printf("shell.Chomp() FOUND *bytes.Buffer") var tmp *bytes.Buffer tmp = a.(*bytes.Buffer) if (tmp == nil) { |
