method
View.Lookup
Lookup reads a direct child and reports snapshot membership. During save callbacks, empty scalars in Root, Siblings and an existing Prior object normalize to Null, so membership does not prove the caller submitted that field. Inspect a raw hook's Value argument when omission and explicit null need different normalization. LiveValidationContext retains sparse readable snapshots; its Input view records submitted membership before retained persisted values are combined.
Arguments
| Argument | Type | Description |
|---|---|---|
name | string | The name value. |
Returns
The declared result.
(store.Value, bool)Full signature
func (view View) Lookup(name string) (store.Value, bool)Related 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.