summaryrefslogtreecommitdiff
path: root/chomp.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-06 19:32:12 -0700
committerJeff Carr <[email protected]>2019-06-06 19:32:12 -0700
commit758e7d157b0a6191f83a5756d561a62a8142010f (patch)
treeeef6f0f740b3522d09fa8fd3970029fa5db35720 /chomp.go
parentd86e39f9ed71d444a37e3a47b87a8b5fd5e7770a (diff)
more shortcut commands
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'chomp.go')
-rw-r--r--chomp.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/chomp.go b/chomp.go
index b452ff2..809ee51 100644
--- a/chomp.go
+++ b/chomp.go
@@ -7,6 +7,7 @@ package shell
*/
import "log"
+import "fmt"
import "reflect"
import "strings"
import "bytes"
@@ -67,7 +68,11 @@ func Chomp(a interface{}) string {
bytesSplice = tmp.Bytes()
return Chomp(string(bytesSplice))
default:
+ tmp := fmt.Sprint("shell.Chomp() NO HANDLER FOR TYPE: %T", a)
+ handleError(fmt.Errorf(tmp), -1)
log.Printf("shell.Chomp() NEED TO MAKE CONVERTER FOR type =", reflect.TypeOf(t))
}
+ tmp := "shell.Chomp() THIS SHOULD NEVER HAPPEN"
+ handleError(fmt.Errorf(tmp), -1)
return ""
}