MCPcopy Index your code
hub / github.com/expr-lang/expr / AsKind

Function AsKind

expr.go:73–78  ·  view source on GitHub ↗

AsKind tells the compiler to expect kind of the result.

(kind reflect.Kind)

Source from the content-addressed store, hash-verified

71
72// AsKind tells the compiler to expect kind of the result.
73func AsKind(kind reflect.Kind) Option {
74 return func(c *conf.Config) {
75 c.Expect = kind
76 c.ExpectAny = true
77 }
78}
79
80// AsBool tells the compiler to expect a boolean result.
81func AsBool() Option {

Callers 3

ExampleAsKindFunction · 0.92
TestCompile_ExpectFunction · 0.92

Calls

no outgoing calls

Tested by 3

ExampleAsKindFunction · 0.74
TestCompile_ExpectFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…