Documentation
¶
Index ¶
- func EncodeJSON(kvalues map[string]tdtl.Node) ([]byte, error)
- func EncodeJSONZ(kvalues map[string]tdtl.Node) ([]byte, error)
- func IsReversedOp(op string) bool
- func IsValidPath(path string) bool
- func NewNode(dataType jsonparser.ValueType, value []byte) tdtl.Node
- func Patch(destNode, srcNode tdtl.Node, path string, op PatchOp) (tdtl.Node, error)
- type PatchOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReversedOp ¶
func IsValidPath ¶
Types ¶
type PatchOp ¶
type PatchOp int
reference: https://datatracker.ietf.org/doc/html/rfc6902 . implement [ add, remove, replace ], reversed [ copy, move, test ].
func NewPatchOp ¶
Click to show internal directories.
Click to hide internal directories.