diff

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Added     mode = "+ "
	Removed   mode = "- "
	Changed   mode = "| "
	Unchanged mode = "  "
)

Variables

This section is empty.

Functions

func Format

func Format(d Diff, long bool) string

Types

type Diff

type Diff interface {
	Mode() mode
}

func Compare

func Compare(old, new interface{}) Diff

Jump to

Keyboard shortcuts

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