# Functions
ColorizeHunks prints a colorized diff hunks to w.
ComputeUnified encapsulates computing a unified diff.
Execute executes differs concurrently, writing output sequentially to w.
Headerf formats a diff doc header suitable for use with [NewHunkDoc].
No description provided by the author
NewColors returns a Colors instance.
NewDiffer returns a new [Differ] that can be passed to [Execute].
NewHunkDoc returns a new [HunkDoc] with the given title and header.
NewUnifiedDoc returns a new [UnifiedDoc] with the given title.
OptBufferFactory returns an Opt that sets the buffer factory for a [Doc].
Titlef formats a diff command title suitable for use with [NewHunkDoc] or [NewUnifiedDoc].
# Structs
Colors encapsulates diff color printing config.
Differ encapsulates a [Doc] and a function that populates the [Doc].
Hunk is a diff hunk, part of a [HunkDoc].
HunkDoc is a document that consists of a series of diff hunks.
UnifiedDoc is a diff [Doc] that consists of a single unified diff body (although that body may contain multiple hunks).