Documentation ¶
Index ¶
- func Compute(doc Document, lineIndices []int, dir Direction) (string, error)
- func GetLines(content string) []line
- func GetNextHunk(lines []Line, index int) int
- func TryGetHunkInformation(hunkLine string) (hunkInfo, bool)
- func TryParseRange(s, marker string) (rng, bool)
- type Changes
- type Direction
- type Document
- type Entry
- type Hunk
- type Line
- type LineKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNextHunk ¶
func TryGetHunkInformation ¶
Hunk information looks like this: @@ -0,0 +1,29 @@ <maybe some garbage afterwards>
func TryParseRange ¶
Types ¶
type Changes ¶
func ChangesFromHeader ¶
type Hunk ¶
func (Hunk) ContainsLine ¶
type Line ¶
func ParseLines ¶
func ParseLines(lines []line) []Line
Click to show internal directories.
Click to hide internal directories.