godiff

package module
v0.0.0-...-1960151 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 4 Imported by: 0

README

go diff

simple diff command

Installation
$ go get -u github.com/matsuyoshi30/godiff/cmd/godiff
Usage
$ godiff testdata/test1 testdata/test2
= abcde
+ a
+ fffff

web

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

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

func NewDiff

func NewDiff(s1, s2 string) (*Diff, error)

func (*Diff) LevenshteinDistance

func (d *Diff) LevenshteinDistance() int

func (*Diff) LongCommonSubSeq

func (d *Diff) LongCommonSubSeq() string

func (*Diff) ShowDiff

func (d *Diff) ShowDiff() []string

ShowDiff . show like below

str1: ATGATCG_GCAT_
str2: _CAAT_GTGAATC
diff: *++--+-+-+--+

func (*Diff) ShowFileDiff

func (d *Diff) ShowFileDiff() ([]string, error)

func (*Diff) Transform

func (d *Diff) Transform() []string

type Op

type Op int

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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