Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
func Diff[T comparable](a, b []T, isNewline func(T) bool, edit func(start, end Position, replacement []T))
Diff will call edit in order for each edit of b required to produce a. Start and end locations are relative to the begining of b, and the replacement slice will either be nil or a subslice of a.
Types ¶
Click to show internal directories.
Click to hide internal directories.