package
0.48.3
Repository: https://github.com/neilotoole/sq.git
Documentation: pkg.go.dev

# 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).

# Interfaces

Doc is a diff document that implements [io.ReadCloser].
Opt is an option for configuring a [Doc].

# Type aliases

Header is the byte sequence for a diff doc, as created by [Headerf], and passed to [NewHunkDoc].
Title is the byte sequence for a diff command title, as created by [Titlef], and passed to [NewUnifiedDoc] or [NewHunkDoc].