method
Value.Lookup
Read an immutable object child and report whether the key exists.
Example
seo := store.Object(store.Values{"title": store.Null()})
title, exists := seo.Lookup("title")
// exists is true even though title is null.Arguments
| Argument | Type | Description |
|---|---|---|
name | string | A literal direct-child name; dots do not traverse nested objects. |
Returns
The child and true when the key exists, including explicit Null; false for a missing key or a non-object.
(Value, bool)Full signature
Related types
ValueAn immutable scalar, object, list, or populated document value.