MCPcopy Index your code
hub / github.com/rsc/tmp / Apply

Method Apply

patch/patch.go:49–49  ·  view source on GitHub ↗

Apply applies the changes listed in the diff to the string s, returning the new version of the string. Note that the string s need not be a text string.

(old []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestFileApplyFunction · 0.65
ApplyMethod · 0.65

Implementers 2

Setpatch/patch.go
GitBinaryLiteralpatch/git.go

Calls

no outgoing calls

Tested by 1

TestFileApplyFunction · 0.52