aboutsummaryrefslogtreecommitdiff
path: root/go/util/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/util/parse.go')
-rw-r--r--go/util/parse.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/go/util/parse.go b/go/util/parse.go
deleted file mode 100644
index 0a8317c19..000000000
--- a/go/util/parse.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package util
-
-import (
- "strconv"
-)
-
-func ParseInt(text string, defaultValue int) int {
- count, parseError := strconv.ParseInt(text, 10, 64)
- if parseError != nil {
- if len(text) > 0 {
- return 0
- }
- return defaultValue
- }
- return int(count)
-}
-func ParseUint64(text string, defaultValue uint64) uint64 {
- count, parseError := strconv.ParseUint(text, 10, 64)
- if parseError != nil {
- if len(text) > 0 {
- return 0
- }
- return defaultValue
- }
- return count
-}