MCPcopy
hub / github.com/spf13/cast / ToInt64E

Function ToInt64E

number.go:458–460  ·  view source on GitHub ↗

ToInt64E casts an interface to an int64 type.

(i any)

Source from the content-addressed store, hash-verified

456
457// ToInt64E casts an interface to an int64 type.
458func ToInt64E(i any) (int64, error) {
459 return toNumberE[int64](i, parseInt[int64])
460}
461
462// ToInt32E casts an interface to an int32 type.
463func ToInt32E(i any) (int32, error) {

Callers 3

ToInt64Function · 0.85
ToBoolEFunction · 0.85
ToDurationEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…