This commit is contained in:
cdle
2021-10-30 11:33:46 +08:00
parent 79e576c26d
commit 61df387489
3 changed files with 10 additions and 231 deletions
+7
View File
@@ -1,6 +1,8 @@
package core
import (
"strconv"
"github.com/google/uuid"
)
@@ -8,3 +10,8 @@ func GetUUID() string {
u2, _ := uuid.NewUUID()
return u2.String()
}
func Float64(str string) float64 {
f, _ := strconv.ParseFloat(str, 64)
return f
}