Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
patch
✓ github.com/cppforlife/go-patch
Apply a simple patch to a map.
package main
import (
"fmt"
"github.com/cppforlife/go-patch"
)
func main() {
p := patch.NewPatchFromString("replace /foo bar")
result, err := p.Apply(map[string]interface{}{"foo": "old"})
if err != nil {
fmt.Println(err)
return
}
fmt.Println(result)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.