MCPcopy Create free account
hub / github.com/rsc/tmp / sections

Function sections

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

sections returns a collection of file sections, each of which begins with a line satisfying prefix. text before the first instance of such a line is returned separately.

(text []byte, prefix string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

ParseFunction · 0.85
ParseTextDiffFunction · 0.85

Calls 1

hasPrefixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…