diff options
| author | Jeff Carr <[email protected]> | 2024-11-08 06:43:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-08 06:43:04 -0600 |
| commit | d887da32f20feee8bfbebf7b2db63f1a42fd7176 (patch) | |
| tree | 8a13e9890c6c9c6e149bdf4cb5ebaf458fcaa167 /int.go | |
| parent | ae5cadf5455d5f65fdab0b690b8d403090750fc3 (diff) | |
use go-cmd/cmd and purge old codev0.22.5
Diffstat (limited to 'int.go')
| -rw-r--r-- | int.go | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -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) -} |
