MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / NewJSONPatch

Function NewJSONPatch

internal/controller/runtime/patch.go:25–25  ·  view source on GitHub ↗

NewJSONPatch creates a new JSON Patch according to RFC 6902; the same as [types.JSONPatchType].

()

Source from the content-addressed store, hash-verified

23
24// NewJSONPatch creates a new JSON Patch according to RFC 6902; the same as [types.JSONPatchType].
25func NewJSONPatch() *JSON6902 { return &JSON6902{} }
26
27func (*JSON6902) pointer(tokens ...string) string {
28 var b strings.Builder

Callers 2

TestJSON6902Function · 0.85
ApplyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestJSON6902Function · 0.68