inline

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package inline prints the inline diff.

Package inline renders AST-aware inline diffs.

Package inline prints the inline diff.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(srcFile, dstFile string, srcBytes, dstBytes []byte, env *serialize.Envelope, opts RenderOptions) string

Render formats the diff envelope as an inline diff with AST highlights and move markers.

Types

type RenderOptions

type RenderOptions struct {
	// Color turns ANSI colors on or off.
	Color bool
	// ContextLines is how much context we show — defaults to 3 lines.
	ContextLines int
	// LineNumbers shows line numbers in the gutter.
	LineNumbers bool
	// DisableAnnotations hides the little move badges.
	DisableAnnotations bool
	// Wrap turns on soft wrapping to fit the terminal.
	Wrap bool
	// TerminalWidth is the wrap column — 0 means auto-detect or off.
	TerminalWidth int
	// TabWidth is spaces per tab — defaults to 4.
	TabWidth int
}

RenderOptions controls how we render the inline diff.

Jump to

Keyboard shortcuts

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