MCPcopy Index your code
hub / github.com/Masterminds/sprig / toInt

Function toInt

numeric.go:18–20  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

16}
17
18func toInt(v interface{}) int {
19 return cast.ToInt(v)
20}
21
22// toInt64 converts integer types to 64-bit integers
23func toInt64(v interface{}) int64 {

Callers 2

TestToIntFunction · 0.85
mustSliceFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestToIntFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…