report

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputMarkdown     = "markdown"
	DefaultMaxBytes    = 60000
	MinPositiveMaxByte = 1024
)

Variables

This section is empty.

Functions

func RawUnifiedDiff

func RawUnifiedDiff(results []diff.Result) string

Types

type MarkdownOptions

type MarkdownOptions struct {
	MaxBytes        int
	DiagnosticLimit int
	Title           string
}

type MarkdownResult

type MarkdownResult struct {
	Bytes       int
	Truncated   bool
	ShownApps   int
	OmittedApps int
}

func DiffMarkdown

func DiffMarkdown(result app.DiffResult, options MarkdownOptions) ([]byte, MarkdownResult, error)

func ImageDiffMarkdown

func ImageDiffMarkdown(result app.ImageDiffResult, options MarkdownOptions) ([]byte, MarkdownResult, error)

func WriteDiffMarkdown

func WriteDiffMarkdown(w io.Writer, result app.DiffResult, options MarkdownOptions) (MarkdownResult, error)

func WriteImageDiffMarkdown

func WriteImageDiffMarkdown(w io.Writer, result app.ImageDiffResult, options MarkdownOptions) (MarkdownResult, error)

Jump to

Keyboard shortcuts

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