Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RawDiffSpan ¶
type RawDiffSpan struct {
Off int64 `json:"off"`
Len int64 `json:"len"`
Afirst byte `json:"a_first"`
Bfirst byte `json:"b_first"`
}
RawDiffSpan describes a differing span between two byte slices. If Len < 0, it indicates a tail size delta (a.Size - b.Size) at Off.
func DiffRaw ¶
func DiffRaw(a, b []byte, maxSpans int) []RawDiffSpan
DiffRaw returns up to maxSpans differing spans between a and b.
Click to show internal directories.
Click to hide internal directories.