function
ObjectView
ObjectView presents an object Value, which is already immutable, without copying it. Any other kind, including the zero Value, is an empty view.
Arguments
| Argument | Type | Description |
|---|---|---|
object | store.Value | The object value. |
Returns
The declared result.
ViewFull signature
func ObjectView(object store.Value) ViewRelated types
ValueAn immutable scalar, object, list, or populated document value.
ViewView is an immutable snapshot of one object's field values. Lookup, Get and String accept direct child names, not dotted paths. Follow nested objects with Get("seo").Get("title"); iterate lists with Get("variants").Elements(). These reads share immutable values without copying maps or slices.