Documentation ¶
Index ¶
- Variables
- func CreatePrimitiveValue(rtype reflect.Type, s string) (reflect.Value, error)
- func EnumerateCallable(v interface{}) map[string]reflect.Value
- func FormatToString(v interface{}) string
- func InvokeCallable(callable reflect.Value, args []string) (outResult, outErr interface{}, err error)
- func IsFloat(kind reflect.Kind) bool
- func IsInteger(kind reflect.Kind) bool
- func IsInterfaceNil(c interface{}) bool
- func IsNumber(kind reflect.Kind) bool
- func IsPrimitive(kind reflect.Kind) bool
- func IsUnsigned(kind reflect.Kind) bool
- func ParseCallExpr(expr string) (fnName string, params []string, outErr error)
- type EvalContext
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreatePrimitiveValue ¶
解析字符串的值到value
func FormatToString ¶
func FormatToString(v interface{}) string
func InvokeCallable ¶
func IsUnsigned ¶
Types ¶
type EvalContext ¶ added in v0.1.9
type EvalContext struct {
// contains filtered or unexported fields
}
func NewEvalContext ¶ added in v0.1.9
func NewEvalContext(this interface{}) *EvalContext
func (*EvalContext) Delete ¶ added in v0.1.9
func (c *EvalContext) Delete(expr string) error
delete a[X]
func (*EvalContext) Set ¶ added in v0.1.9
func (c *EvalContext) Set(expr string, v interface{}) error
在`this`上,设置v到对应`expr`
func (*EvalContext) View ¶ added in v0.1.9
func (c *EvalContext) View(expr string) (interface{}, error)
在`this`上,返回其`expr`对应的值
Click to show internal directories.
Click to hide internal directories.