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

Function AsInt

expr.go:89–94  ·  view source on GitHub ↗

AsInt tells the compiler to expect an int result.

()

Source from the content-addressed store, hash-verified

87
88// AsInt tells the compiler to expect an int result.
89func AsInt() Option {
90 return func(c *conf.Config) {
91 c.Expect = reflect.Int
92 c.ExpectAny = true
93 }
94}
95
96// AsInt64 tells the compiler to expect an int64 result.
97func AsInt64() Option {

Callers 2

ExampleAsIntFunction · 0.92
ExampleWarnOnAnyFunction · 0.92

Calls

no outgoing calls

Tested by 2

ExampleAsIntFunction · 0.74
ExampleWarnOnAnyFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…