utils.go: ToInt() renamed as ToGoInt()

This commit is contained in:
Celestino Amoroso 2024-06-26 04:22:29 +02:00
parent ba9b9cb28f
commit a7836143cc

View File

@ -203,7 +203,7 @@ func CloneFilteredMap[K comparable, V any](source map[K]V, filter func(key K) (a
return CopyFilteredMap(dest, source, filter) return CopyFilteredMap(dest, source, filter)
} }
func ToInt(value any, description string) (i int, err error) { func ToGoInt(value any, description string) (i int, err error) {
if valueInt64, ok := value.(int64); ok { if valueInt64, ok := value.(int64); ok {
i = int(valueInt64) i = int(valueInt64)
} else if valueInt, ok := value.(int); ok { } else if valueInt, ok := value.(int); ok {