type

Value

type Value struct { kind ValueKind text string number float64 boolean bool items []Value }

An immutable scalar or list comparison operand.

Source query/value.go:21

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