method
View.Get
Get reads a direct child, returning Null when it is absent. Use Lookup when membership in this snapshot matters. JSON and plugin values retain their own object shape rather than acquiring omitted scalar properties.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
Returns
The declared result.
store.ValueFull signature
func (view View) Get(name string) store.ValueRelated types
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.
ValueAn immutable scalar, object, list, or populated document value.