Documentation ¶
Index ¶
- Constants
- Variables
- func Error(err error, msg string) error
- func Errorf(err error, format string, args ...interface{}) error
- func Errors(err ...error) error
- func IsNil(input interface{}) bool
- func IsTypeOf(value Value, check Type) bool
- func NewRootScope() (*Scope, CloseFunc)
- func ParamsFrom(ctx context.Context) (map[string]Value, error)
- func ParamsWith(ctx context.Context, params map[string]Value) context.Context
- func SourceError(src SourceMap, err error) error
- func TypeError(actual Type, expected ...Type) error
- func ValidateArgs(args []Value, minimum, maximum int) error
- func ValidateType(value Value, required ...Type) error
- type Cloneable
- type CloseFunc
- type Expression
- type Function
- type OperatorExpression
- type Scope
- type SourceMap
- type Type
- type Value
Constants ¶
View Source
const MaxArgs = 65536
Variables ¶
View Source
var ( ErrMissedArgument = errors.New("missed argument") ErrInvalidArgument = errors.New("invalid argument") ErrInvalidArgumentNumber = errors.New("invalid argument number") ErrInvalidType = errors.New("invalid type") ErrInvalidOperation = errors.New("invalid operation") ErrNotFound = errors.New("not found") ErrNotUnique = errors.New("not unique") ErrTerminated = errors.New("operation is terminated") ErrUnexpected = errors.New("unexpected error") ErrTimeout = errors.New("operation timed out") ErrNotImplemented = errors.New("not implemented") )
Functions ¶
func NewRootScope ¶
func SourceError ¶
func ValidateArgs ¶
func ValidateType ¶
Types ¶
type Expression ¶
type OperatorExpression ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) HasVariable ¶
type SourceMap ¶
type SourceMap struct {
// contains filtered or unexported fields
}
func NewSourceMap ¶
Click to show internal directories.
Click to hide internal directories.