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

Function AsInt64

expr.go:97–102  ·  view source on GitHub ↗

AsInt64 tells the compiler to expect an int64 result.

()

Source from the content-addressed store, hash-verified

95
96// AsInt64 tells the compiler to expect an int64 result.
97func AsInt64() Option {
98 return func(c *conf.Config) {
99 c.Expect = reflect.Int64
100 c.ExpectAny = true
101 }
102}
103
104// AsFloat64 tells the compiler to expect a float64 result.
105func AsFloat64() Option {

Callers 4

ExampleAsInt64Function · 0.92
TestCompile_ExpectFunction · 0.92
TestCheck_AsInt64Function · 0.92

Calls

no outgoing calls

Tested by 4

ExampleAsInt64Function · 0.74
TestCompile_ExpectFunction · 0.74
TestCheck_AsInt64Function · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…