Get uses the pointer to retrieve a value from a JSON document. It returns the value with its type as a [reflect.Kind] or an error.
(document any, opts ...Option)
| 57 | // |
| 58 | // It returns the value with its type as a [reflect.Kind] or an error. |
| 59 | func (p *Pointer) Get(document any, opts ...Option) (any, reflect.Kind, error) { |
| 60 | o := optionsWithDefaults(opts) |
| 61 | |
| 62 | return p.get(document, o.provider) |
| 63 | } |
| 64 | |
| 65 | // Set uses the pointer to set a value from a data type that represent a JSON document. |
| 66 | // |