utils.go: ToInt() renamed as ToGoInt()
This commit is contained in:
parent
ba9b9cb28f
commit
a7836143cc
2
utils.go
2
utils.go
@ -203,7 +203,7 @@ func CloneFilteredMap[K comparable, V any](source map[K]V, filter func(key K) (a
|
||||
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 {
|
||||
i = int(valueInt64)
|
||||
} else if valueInt, ok := value.(int); ok {
|
||||
|
Loading…
Reference in New Issue
Block a user