type

ValueKind

What a Value holds: null, string, number, boolean, object, list, or a populated document.

Example

go
if value.Kind() == store.ValueList {
  // Read items with value.Elements().
}

How it works

Compare with the ValueNull, ValueString, ValueNumber, ValueBoolean, ValueObject, ValueList, and ValueDocument constants. Use String() for the kind's name in messages; a plain string conversion does not produce it.

Full signature

Methods