Few debug on obidistribute and some progresses on obiunique, but -c and -m options are still not working

This commit is contained in:
2022-02-15 10:49:01 +01:00
parent 3586ecc483
commit ce226acac0
4 changed files with 110 additions and 8 deletions

View File

@@ -54,11 +54,12 @@ func InterfaceToInt(i interface{}) (val int, err error) {
return
}
func IsAnInt(i interface{}) bool {
func CastableToInt(i interface{}) bool {
switch i.(type) {
case int,
int8, int16, int32, int64,
float32, float64,
uint8, uint16, uint32, uint64:
return true
default: