Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/duke-git/lancet
/ mustBeFunction
Function
mustBeFunction
function/function.go:232–237 ·
view source on GitHub ↗
(function any)
Source
from the content-addressed store, hash-verified
230
}
231
232
func
mustBeFunction(function any) {
233
v := reflect.ValueOf(function)
234
if
v.Kind() != reflect.Func {
235
panic(fmt.Sprintf(
"Invalid function type, value of type %T"
, function))
236
}
237
}
Callers
4
After
Function · 0.85
Before
Function · 0.85
Delay
Function · 0.85
Schedule
Function · 0.85
Calls
2
Kind
Method · 0.80
ValueOf
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…