diff

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package diff provides utilities for comparing strings and slices to produce a readable diff output for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff[T comparable](want, got []T) string

Diff is a silly diff implementation that compares the provided slices and returns a diff of them.

func Lines

func Lines(want, got string) string

Lines returns a diff of two strings, line-by-line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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