differ

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(dOld, dNew interface{}) (string, error)

Types

type Differ

type Differ struct {
	// contains filtered or unexported fields
}

func NewDiffer

func NewDiffer(options Options) Differ

func (Differ) Configure

func (d Differ) Configure(options Options)

func (Differ) Diff

func (d Differ) Diff(dOld, dNew interface{}) (string, error)

type Options

type Options struct {
	Prefix string
	Color  bool
	Common bool
}

func DefaultOptions

func DefaultOptions() Options

Jump to

Keyboard shortcuts

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