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