This commit is contained in:
邹宗楠
2023-06-13 16:33:01 +08:00
parent 54812a2ce2
commit 147ce647fe
7 changed files with 180 additions and 6 deletions

View File

@@ -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 {