Help us shape the future of Go! Take the 2026 Go Developer Survey

diff

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff interface {
	DiffUnified(name1, name2, text1, text2 string) string
}

Diff is an interface for computing diffs.

func New

func New(options ...DiffOption) Diff

type DiffOption

type DiffOption interface {
	// contains filtered or unexported methods
}

func WithColored

func WithColored() DiffOption

type DiffOptions

type DiffOptions struct {
	Colored bool
}

Jump to

Keyboard shortcuts

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