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.
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
Value.StringValue()Read the string payload when this value has string kind.
Value.BooleanValue()Public method Value.BooleanValue from github.com/riducms/ridu/store.
Value.DocumentValue()Public method Value.DocumentValue from github.com/riducms/ridu/store.
Value.Kind()Public method Value.Kind from github.com/riducms/ridu/store.
Value.MarshalJSON()Public method Value.MarshalJSON from github.com/riducms/ridu/store.
Value.NumberValue()Public method Value.NumberValue from github.com/riducms/ridu/store.
Value.ObjectValue()Public method Value.ObjectValue from github.com/riducms/ridu/store.
Value.UnmarshalJSON()Public method Value.UnmarshalJSON from github.com/riducms/ridu/store.
Value.Values()Public method Value.Values from github.com/riducms/ridu/store.