Discover Packages
github.com/iyulab/oops
internal
diff
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Sep 29, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package diff renders line diffs between two versions of a file.
IsBinary reports content that should not be shown as text. Like git, it looks for a NUL byte in the first
8000 bytes: text in a legacy encoding (CP949, Shift-JIS, Latin-1) is not valid UTF-8 but is still text.
Unified returns a unified diff with 3 lines of context, "" when equal.
The second result is true when either side is binary.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.