Registry / serialization / krishicks-yaml-patch

krishicks-yaml-patch

JSON →
library0.0.10gogounverified

A Go library for applying JSON Patch operations to YAML documents.

go get github.com/krishicks/yaml-patch
INSTALL
IMPORT
SIG · KRISHICKS-YAML-PAT
K
krishicks-yaml-patch
serializationgov0.0.10
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.

yamlpatch
github.com/krishicks/yaml-patch

Applies a JSON patch to a YAML document.

package main import ( "fmt" "github.com/krishicks/yaml-patch" ) func main() { patch := yamlpatch.Patch{`{"op": "replace", "path": "/foo", "value": "bar"}`} result, _ := patch.Apply([]byte("foo: baz")) fmt.Println(string(result)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.10latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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