Documentation
¶
Overview ¶
Package search implements a directional substring search index for diff lines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index holds a searchable list of line texts extracted from a FilePatch.
func Build ¶
Build constructs an Index from all DiffLines in the patch's hunks. Hunk headers are not included in the index.
type SearchDirection ¶
type SearchDirection int
SearchDirection indicates which way to scan.
const ( SearchNext SearchDirection = iota SearchPrev )
Click to show internal directories.
Click to hide internal directories.