package
Version:
v0.0.1-alpha.30
Opens a new window with list of versions in this module.
Published: Jun 24, 2025
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func ApplyPatch(original interface{}, patches []Patch) (interface{}, error)
ApplyPatch applies a series of JSON Patch operations to the original JSON object.
type Patch struct {
Op string `json:"op"`
Path string `json:"path"`
From string `json:"from,omitempty"`
Value interface{} `json:"value,omitempty"`
}
Patch represents a single JSON Patch operation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.