MCPcopy
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
232func 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

AfterFunction · 0.85
BeforeFunction · 0.85
DelayFunction · 0.85
ScheduleFunction · 0.85

Calls 2

KindMethod · 0.80
ValueOfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…