Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
18
func
toInt(v
interface
{}) int {
19
return
cast.ToInt(v)
20
}
21
22
// toInt64 converts integer types to 64-bit integers
23
func
toInt64(v
interface
{}) int64 {
Callers
2
TestToInt
Function · 0.85
mustSlice
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestToInt
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…