summaryrefslogtreecommitdiff
path: root/int.go
diff options
context:
space:
mode:
Diffstat (limited to 'int.go')
-rw-r--r--int.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/int.go b/int.go
deleted file mode 100644
index bf78209..0000000
--- a/int.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package shell
-
-/*
- send it anything, always get back an int
-*/
-
-// import "log"
-// import "reflect"
-// import "strings"
-// import "bytes"
-import "strconv"
-
-func Int(s string) int {
- s = Chomp(s)
- i, err := strconv.Atoi(s)
- if err != nil {
- handleError(err, -1)
- return 0
- }
- return i
-}
-
-func Int64(s string) int64 {
- s = Chomp(s)
- i, err := strconv.Atoi(s)
- if err != nil {
- handleError(err, -1)
- return 0
- }
- return int64(i)
-}