MCPcopy
hub / github.com/expr-lang/expr / types

Function types

builtin/utils.go:29–42  ·  view source on GitHub ↗
(types ...any)

Source from the content-addressed store, hash-verified

27}
28
29func types(types ...any) []reflect.Type {
30 ts := make([]reflect.Type, len(types))
31 for i, t := range types {
32 t := reflect.TypeOf(t)
33 if t.Kind() == reflect.Ptr {
34 t = t.Elem()
35 }
36 if t.Kind() != reflect.Func {
37 panic("not a function")
38 }
39 ts[i] = t
40 }
41 return ts
42}
43
44func toInt(val any) (int, error) {
45 switch v := val.(type) {

Callers 2

bitFuncFunction · 0.85
builtin.goFile · 0.85

Calls 1

ElemMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…