package
0.53.1
Repository: https://github.com/shulhan/share.git
Documentation: pkg.go.dev

# Functions

Bytes given two similar lines, find and return the differences (additions and deletion) between them.
BytesRatio compare two slice of bytes and return ratio of matching bytes.
Files compare two files.
IsEqual compare two slice of bytes and return true if equal or false otherwise.
Lines search the difference between two Lines.
NewLineChange create a pointer to new LineChange object.
ReadLines return lines in the file `f`.
Text search the difference between two texts.

# Constants

DefMatchLen minimum number of bytes used for searching the next matched chunk in line.
DefMatchRatio define default minimum match ratio to be considered as change.
LevelLines define that we want only lines change set.
LevelWords define that we want the change not only capture the different per line, but also changes inside the line.

# Variables

DefDelimiter define default delimiter for new line.

# Structs

Data represent additions, deletions, and changes between two text.
LineChange represent one change in text.

# Type aliases

LineChanges represents a set of change in text.