Rewritten in go and python

This commit is contained in:
2024-11-06 01:25:27 +04:00
parent 9f22d9678d
commit d8449237bb
50 changed files with 3824 additions and 879 deletions

View File

@@ -0,0 +1,20 @@
package utils
import (
"math"
"path/filepath"
"strconv"
)
func IsValidPath(path string) bool {
return filepath.IsAbs(path)
}
func IsUint32(value int) bool {
return value >= 0 && value <= math.MaxUint32
}
func IsInt(value string) bool {
_, err := strconv.Atoi(value)
return err == nil
}