quiet Chomp() debugging

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-15 19:17:37 -07:00
parent 2806f41841
commit 3fadcf18a6
1 changed files with 4 additions and 4 deletions

View File

@ -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) {