Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Fields []string
View Source
var Lang = gval.NewLanguage( gval.InfixShortCircuit("&&", func(lhs interface{}) (interface{}, bool) { return false, lhs == false }), gval.InfixShortCircuit("||", func(lhs interface{}) (interface{}, bool) { return true, lhs == true }), gval.InfixBoolOperator("&&", func(lhs, rhs bool) (interface{}, error) { return lhs && rhs, nil }), gval.InfixBoolOperator("||", func(lhs, rhs bool) (interface{}, error) { return lhs || rhs, nil }), gval.InfixBoolOperator("==", func(lhs, rhs bool) (interface{}, error) { return lhs == rhs, nil }), gval.InfixBoolOperator("!=", func(lhs, rhs bool) (interface{}, error) { return lhs != rhs, nil }), gval.InfixNumberOperator("==", func(lhs, rhs float64) (interface{}, error) { return lhs == rhs, nil }), gval.InfixNumberOperator("!=", func(lhs, rhs float64) (interface{}, error) { return lhs != rhs, nil }), gval.InfixEvalOperator("~~", regEx), gval.InfixOperator("==", func(lhs, rhs interface{}) (interface{}, error) { return reflect.DeepEqual(lhs, rhs), nil }), gval.InfixOperator("!=", func(lhs, rhs interface{}) (interface{}, error) { return !reflect.DeepEqual(lhs, rhs), nil }), gval.PrefixExtension(scanner.Int, parseNumber), gval.PrefixExtension(scanner.Float, parseNumber), gval.PrefixExtension(scanner.RawString, parseString), gval.Constant("true", true), gval.Constant("false", false), gval.Parentheses(), gval.Precedence("||", 20), gval.Precedence("&&", 21), gval.Precedence("==", 40), gval.Precedence("!=", 40), gval.Precedence("~~", 40), gval.PrefixMetaPrefix(scanner.Ident, parseIdent), )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.