diff

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	StartLine int
	EndLine   int
}

type Diff

type Diff map[FileName][]Change

func New

func New() (Diff, error)

func NewWithCmd

func NewWithCmd[T execCmd](cmdContext func(name string, args ...string) T) (Diff, error)

func (Diff) IsChanged

func (d Diff) IsChanged(pos token.Position) bool

type FileName

type FileName string

Jump to

Keyboard shortcuts

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