diff

package
v0.0.0-...-d046166 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package diff computes differences between strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(orig, expect string) (string, error)

Diff takes the diff between orig and expect. Returns empty string if equals, otherwise returns the diff in unified diff format. In tests, it is recommended to output the diff result into a file, instead of directly outputting to log message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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