type

Value

An immutable scalar or list comparison operand.

Properties

PropertyTypeDescription
Kind()ValueKindString, 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()[]ValueDeep copy of list items.

How it works

Explicit constructors prevent arbitrary application values from leaking into the query contract. Value implements JSON encoding.

Full signature

type Value struct { // contains filtered or unexported fields }

Source query/value.go:28

Methods

Related guides