No changes made

This commit is contained in:
2025-04-16 12:47:04 -04:00
commit 1ed3b0c2d4
98 changed files with 8857 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package handlers
import "strconv"
func ParseFloat32(v string) (float32, error) {
fl, err := strconv.ParseFloat(v, 32)
if err != nil {
return 0, err
}
return float32(fl), nil
}
func ParseInt32WithDefault(s string, def int32) int32 {
sInt, err := strconv.ParseInt(s, 10, 32)
if err != nil {
return def
}
return int32(sInt)
}