1
This commit is contained in:
@@ -223,6 +223,10 @@ func Bool2Int(value bool) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func Bool2Point(value bool) *bool {
|
||||
return &value
|
||||
}
|
||||
|
||||
func Str2Int64WithDefault(str string, defValue int64) int64 {
|
||||
retVal, err := strconv.ParseInt(str, 10, 64)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user