Registry / utility / cppforlife-go-patch

cppforlife-go-patch

JSON →
library0.2.0gogounverified

Library for applying patches to data structures.

go get github.com/cppforlife/go-patch
INSTALL
IMPORT
SIG · CPPFORLIFE-GO-PATC
C
cppforlife-go-patch
utilitygov0.2.0
harness data pending
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.

Agent activity
4 hits · last 30 days
node
4
Resources
cppforlife-go-patch — go get cppforlife-go-patch · libregistry