diff

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyDiff

func AnyDiff[T any](have, want T) string

AnyDiff returns a textual representation of the differences between 'have' and 'want'.

func TextDiff

func TextDiff(oldName string, old []byte, newName string, new []byte) []byte

TextDiff returns a unified diff. Based on a copy of internal/diff from the Go stdlib https://github.com/golang/go/tree/master/src/internal/diff

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳