Versions in this module Expand all Collapse all v0 v0.4.0 Sep 17, 2026 Changes in this version type Options + SideBySide bool v0.3.0 Sep 16, 2026 Changes in this version + func Lines(diffText string, opts Options) []string + type Options struct + LineNumbers bool + Palette Palette + Syntax bool + Width int + WordDiff bool + type Palette struct + Added color.Color + AddedWord color.Color + Context color.Color + File color.Color + Gutter color.Color + Hunk color.Color + Removed color.Color + RemovedWord color.Color + Syntax SyntaxPalette + type SyntaxPalette struct + Comment color.Color + Keyword color.Color + Name color.Color + Number color.Color + Operator color.Color + String color.Color + Type color.Color