type
Value
An immutable scalar or list comparison operand.
Kind()ValueKind- String, number, boolean, null, or list.
StringValue()(string, bool)- String payload and whether the kind matched.
NumberValue()(float64, bool)- Number payload and whether the kind matched.
BooleanValue()(bool, bool)- Boolean payload and whether the kind matched.
Values()[]Value- Deep copy of list items.
Explicit constructors prevent arbitrary application values from leaking into the query contract. Value implements JSON encoding.
Methods
Value.BooleanValue()BooleanValue returns the boolean and true when this is a boolean operand.
Value.Kind()Kind returns the operand's discriminant.
Value.MarshalJSON()Public method Value.MarshalJSON from github.com/riducms/ridu/query.
Value.NumberValue()NumberValue returns the number and true when this is a number operand.
Value.StringValue()StringValue returns the string and true when this is a string operand.
Value.Values()Values returns a deep copy for a list operand.