diff

package
v0.2101.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package diff implements helpers for comparing objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnifiedDiffString

func UnifiedDiffString(actual, expected, actualName, expectedName string) (string, error)

UnifiedDiffString returns unified diff between the given actual and expected strings.

actualName and expectedName are the names of the "files" in the unified diff header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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