parser

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	LargestLineNumber int
	Lines             []Line
	NewStart          int
	NewEnd            int
	OldStart          int
	OldEnd            int
}

type Diff

type Diff struct {
	Files []File
}

func ParseDiff

func ParseDiff(lines string) (Diff, error)

type File

type File struct {
	Name   string
	Blocks []Block
}

type Line

type Line struct {
	Number  int
	Content string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL