mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-10-13 11:04:03 +08:00
chore: upgrade coredns version (#550)
This commit is contained in:
23
vendor/github.com/expr-lang/expr/builtin/function.go
generated
vendored
Normal file
23
vendor/github.com/expr-lang/expr/builtin/function.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
package builtin
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
type Function struct {
|
||||
Name string
|
||||
Fast func(arg any) any
|
||||
Func func(args ...any) (any, error)
|
||||
Safe func(args ...any) (any, uint, error)
|
||||
Types []reflect.Type
|
||||
Validate func(args []reflect.Type) (reflect.Type, error)
|
||||
Deref func(i int, arg reflect.Type) bool
|
||||
Predicate bool
|
||||
}
|
||||
|
||||
func (f *Function) Type() reflect.Type {
|
||||
if len(f.Types) > 0 {
|
||||
return f.Types[0]
|
||||
}
|
||||
return reflect.TypeOf(f.Func)
|
||||
}
|
Reference in New Issue
Block a user