type

Value

type Value struct { kind ValueKind text string object Values document *Document number float64 boolean bool list []Value }

A scalar, object, list, or populated document value.

Source store/value.go:24

Kind()ValueKind
Null, string, object, populated document, number, boolean, or list.
StringValue()(string, bool)
String payload and matching-kind flag.
ObjectValue()(Values, bool)
Defensive nested-object copy and matching-kind flag.
DocumentValue()(Document, bool)
Defensive populated-document copy and matching-kind flag.
NumberValue()(float64, bool)
Numeric payload and matching-kind flag.
BooleanValue()(bool, bool)
Boolean payload and matching-kind flag.
Values()([]Value, bool)
Defensive list copy and matching-kind flag.

Methods