Documentation ¶ Overview ¶ Package diff renders unified diffs between old and new file content using an in-process unified-diff renderer. Plane: shared Index ¶ func Show(w io.Writer, old, new []byte, filename string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Show ¶ func Show(w io.Writer, old, new []byte, filename string) error Show writes a unified diff between old and new content to w. filename is used in the diff header ("--- a/<filename>" / "+++ b/<filename>"). Returns nil without output if old and new are identical. Types ¶ This section is empty. Source Files ¶ View all Source files diff.godoc.go Click to show internal directories. Click to hide internal directories.