diff

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(oldContent, newContent, filePath string, isNewFile bool) string

Types

type DiffLine

type DiffLine struct {
	Type    LineType
	Content string
	OldNo   int
	NewNo   int
}

func Generate

func Generate(oldContent, newContent string) []DiffLine

type LineType

type LineType int
const (
	LineContext LineType = iota
	LineAdded
	LineRemoved
	LineEllipsis
)

Jump to

Keyboard shortcuts

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