Documentation
¶
Overview ¶
Package jsonpatch contains data structures and encoders for JSON Patch (RFC 6902) and JSON Pointers (RFC 6901)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeJSONRefToken ¶
EncodeJSONRefToken encodes a JSON reference token as part of a JSON Pointer (RFC 6901 Section 2)
func PointerFromParts ¶
PointerFromParts returns an encoded JSON Pointer from parts
Types ¶
type JsonPatchOp ¶
type JsonPatchOp struct { Operation string `json:"op"` Path string `json:"path"` // Technically a JSON Pointer, but called Path in the RFC From string `json:"from,omitempty"` Value interface{} `json:"value,omitempty"` }
JsonPatchOp describes a JSON Patch operation (RFC 6902 Section 4)
Click to show internal directories.
Click to hide internal directories.