Documentation
¶
Index ¶
- func Format(v any) (string, error)
- func Parse(raw string) (any, error)
- type Document
- func (d *Document) CloneValue() (any, error)
- func (d *Document) Comparable() any
- func (d *Document) DataValue() any
- func (d *Document) MarshalJSON() ([]byte, error)
- func (d *Document) Query(path string) (any, error)
- func (d *Document) Remove(path string) error
- func (d *Document) Set(path string, val any) error
- func (d *Document) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
Document retains namespaces and mixed-content order independently of its convenient JSON-shaped read view. A document belongs to one scenario.
func ParseDocument ¶
func (*Document) CloneValue ¶
func (*Document) Comparable ¶
Comparable includes expanded namespace names and ordered content. Namespace prefix spelling and formatting whitespace do not change element identity.
func (*Document) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.