Versions in this module Expand all Collapse all v1 v1.1.3 May 9, 2023 Changes in this version + const DefaultFileName + type Args map[string]Value + func ArgsFromInterfaces(x map[string]interface{}) Args + func ArgsFromRegulars(x map[string]reflect.Value) Args + type ArgsI map[string]interface + type ArgsR map[string]reflect.Value + type Data interface + AsInt func() (r int, ok bool) + Assign func(t reflect.Type) (r reflect.Value, ok bool) + AssignableTo func(t reflect.Type) bool + Convert func(t reflect.Type) (r Data, ok bool) + ConvertibleTo func(t reflect.Type) bool + DeepString func() string + DeepType func() string + DeepValue func() string + IsConst func() bool + IsTyped func() bool + Kind func() DataKind + MustAssign func(t reflect.Type) reflect.Value + MustConvert func(t reflect.Type) Data + Regular func() reflect.Value + TypedConst func() constanth.TypedValue + UntypedBool func() bool + UntypedConst func() constant.Value + func MakeNil() Data + func MakeRegular(x reflect.Value) Data + func MakeRegularInterface(x interface{}) Data + func MakeTypedConst(x constanth.TypedValue) Data + func MakeUntypedBool(x bool) Data + func MakeUntypedConst(x constant.Value) Data + type DataKind int + const Nil + const Regular + const TypedConst + const UntypedBool + const UntypedConst + func (k DataKind) String() string + type Error struct + Msg string + Pos asth.Position + func (err Error) Error() string + type Expression struct + func MakeExpression(e ast.Expr, fset *token.FileSet, pkgPath string) *Expression + func Parse(filename string, src interface{}, pkgPath string) (r *Expression, err error) + func ParseBytes(src []byte, pkgPath string) (r *Expression, err error) + func ParseReader(src io.Reader, pkgPath string) (r *Expression, err error) + func ParseString(src string, pkgPath string) (r *Expression, err error) + func (e *Expression) EvalRaw(args Args) (r Value, err error) + func (e *Expression) EvalToData(args Args) (r Data, err error) + func (e *Expression) EvalToInterface(args Args) (r interface{}, err error) + func (e *Expression) EvalToRegular(args Args) (r reflect.Value, err error) + type Value interface + BuiltInFunc func() string + Data func() Data + DeepType func() string + Kind func() ValueKind + Package func() map[string]Value + String func() string + Type func() reflect.Type + func MakeBuiltInFunc(x string) Value + func MakeData(x Data) Value + func MakeDataNil() Value + func MakeDataRegular(x reflect.Value) Value + func MakeDataRegularInterface(x interface{}) Value + func MakeDataTypedConst(x constanth.TypedValue) Value + func MakeDataUntypedBool(x bool) Value + func MakeDataUntypedConst(x constant.Value) Value + func MakePackage(x Args) Value + func MakeType(x reflect.Type) Value + func MakeTypeInterface(x interface{}) Value + type ValueKind int + const BuiltInFunc + const Datas + const Package + const Type