diffview

command
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Command diffview shows tuikit.DiffView: the same edit rendered unified and side-by-side, syntax-highlighted, with the changed words inside a modified line pair picked out.

go run ./examples/diffview

Press tab to switch layouts, +/- to change the context lines, and q to quit.

The thing to watch is the modified pairs. Line for line the two versions are almost identical — a renamed parameter, a widened signature, a changed format string — and a plain +/- diff leaves finding the difference to the reader. Narrow the terminal below 100 columns and the side-by-side layout falls back to unified on its own rather than truncating both halves.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL