That is, func Files(left, right string) DiffWriteable. It would read the contents of the files up-front and diff the lines as []string or [][]byte, while including the original filenames. It would also do things that are common when one diffs plaintext files, such as treating windows line endings like unix line endings, or ignoring a trailing newline unless it appears/disappears.
In the rare case that someone needs this to support streaming, they can just easily implement the interface themselves.
That is,
func Files(left, right string) DiffWriteable. It would read the contents of the files up-front and diff the lines as[]stringor[][]byte, while including the original filenames. It would also do things that are common when one diffs plaintext files, such as treating windows line endings like unix line endings, or ignoring a trailing newline unless it appears/disappears.In the rare case that someone needs this to support streaming, they can just easily implement the interface themselves.