diff

package
v0.0.0-...-6c83729 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayCustomize

type ArrayCustomize struct {
	BaseCustomize
}

ArrayCustomize :

type BaseCustomize

type BaseCustomize struct{}

BaseCustomize :

type Change

type Change struct {
	Value   string `json:"value"`
	Count   int    `json:"count"`
	Added   bool   `json:"added"`
	Removed bool   `json:"removed"`
}

Change :

func CompareArray

func CompareArray(oldArr, newArr []string) []*Change

CompareArray :

func CompareChars

func CompareChars(oldString, newString string) []*Change

CompareChars :

func CompareLines

func CompareLines(oldStr, newStr string) []*Change

CompareLines :

type Customize

type Customize interface {
	// contains filtered or unexported methods
}

Customize :

type Diff

type Diff struct {
	Customize Customize
	// contains filtered or unexported fields
}

Diff :

func CreateDiff

func CreateDiff() *Diff

CreateDiff :

func (*Diff) Diff

func (d *Diff) Diff(oldString, newString string) []*Change

Diff :

type LineCustomize

type LineCustomize struct {
	BaseCustomize
}

LineCustomize :

type Path

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

Path :

func CreatePath

func CreatePath() *Path

CreatePath :

Jump to

Keyboard shortcuts

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