Versions in this module Expand all Collapse all v1 v1.4.2 Apr 25, 2023 v1.4.1 Mar 14, 2023 Changes in this version + type DefaultHandler struct + func (h *DefaultHandler) Add(pointer JSONPointer, value interface{}) []JSONPatch + func (h *DefaultHandler) Remove(pointer JSONPointer, _ interface{}) []JSONPatch + func (h *DefaultHandler) Replace(pointer JSONPointer, value, _ interface{}) []JSONPatch + type Funcs struct + AddFunc func(pointer JSONPointer, modified interface{}) bool + RemoveFunc func(pointer JSONPointer, current interface{}) bool + ReplaceFunc func(pointer JSONPointer, modified, current interface{}) bool + func (p Funcs) Add(pointer JSONPointer, modified interface{}) bool + func (p Funcs) Remove(pointer JSONPointer, current interface{}) bool + func (p Funcs) Replace(pointer JSONPointer, modified, current interface{}) bool + type Handler interface + Add func(pointer JSONPointer, modified interface{}) []JSONPatch + Remove func(pointer JSONPointer, current interface{}) []JSONPatch + Replace func(pointer JSONPointer, modified, current interface{}) []JSONPatch + type IgnorePattern struct + JSONField string + Pattern string + type JSONPatch struct + Operation string + Path string + Value interface{} + type JSONPatchList struct + func CreateJSONPatch(modified, current interface{}, options ...Option) (JSONPatchList, error) + func CreateThreeWayJSONPatch(modified, current, original interface{}, options ...Option) (JSONPatchList, error) + func (l JSONPatchList) Empty() bool + func (l JSONPatchList) Len() int + func (l JSONPatchList) List() []JSONPatch + func (l JSONPatchList) Raw() []byte + func (l JSONPatchList) String() string + type JSONPointer []string + func ParseJSONPointer(str string) JSONPointer + func (p JSONPointer) Add(elem string) JSONPointer + func (p JSONPointer) Match(pattern string) bool + func (p JSONPointer) String() string + type Option func(r *walker) + func IgnoreSliceOrder() Option + func IgnoreSliceOrderWithPattern(slices []IgnorePattern) Option + func WithHandler(handler Handler) Option + func WithPredicate(predicate Predicate) Option + func WithPrefix(prefix []string) Option + type Predicate interface + Add func(pointer JSONPointer, modified interface{}) bool + Remove func(pointer JSONPointer, current interface{}) bool + Replace func(pointer JSONPointer, modified, current interface{}) bool