Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJsonpatchPatch ¶
Types ¶
type Document ¶
type Document struct { Warning string // contains filtered or unexported fields }
func NewDocument ¶
func NewDocument(raw []byte, opts ...DocumentOption) *Document
func (*Document) ApplyChanges ¶
func (*Document) FastForwardChanges ¶
func (*Document) ReduceHistory ¶
type DocumentOption ¶
type DocumentOption func(*Document)
func WithIdentifiers ¶
func WithIdentifiers(identifiers [][]string) DocumentOption
type Operation ¶
type Operation struct { Op string `json:"op"` Path string `json:"path,omitempty"` From string `json:"from,omitempty"` Value *json.RawMessage `json:"value,omitempty"` Prev *json.RawMessage `json:"_prev,omitempty"` }
Click to show internal directories.
Click to hide internal directories.