testing compilation with remove package

This commit is contained in:
Chris Lu
2013-02-10 03:49:51 -08:00
parent 55f2627fcf
commit 5071f528f6
51 changed files with 39 additions and 39 deletions

16
go/util/parse.go Normal file
View File

@@ -0,0 +1,16 @@
package util
import (
"strconv"
)
func ParseInt(text string, defaultValue int) int {
count, parseError := strconv.ParseUint(text, 10, 64)
if parseError != nil {
if len(text) > 0 {
return 0
}
return defaultValue
}
return int(count)
}