Versions in this module Expand all Collapse all v1 v1.5.0 Sep 4, 2025 v1.4.0 Mar 3, 2025 Changes in this version + const OperationAdd + const OperationCopy + const OperationMove + const OperationRemove + const OperationReplace + const OperationTest + type Operation struct + Comment string + From Path + Path Path + Type string + Value interface{} + func (op Operation) String() string + type Patch []Operation + type Patcher interface + Apply func(originalBytes []byte, patch Patch) ([]byte, error) + type Path []string + func MustParsePath(str string) Path + func ParsePath(str string) (Path, error) + func (p *Path) UnmarshalText(text []byte) error + func (p Path) Key() string + func (p Path) MarshalText() ([]byte, error) + func (p Path) String() string