debugdump

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffSection

func DiffSection(label, section, before, after string) string

DiffSection extracts the named section from before and after, then returns a unified diff of just that section. Falls back to a full DiffText when the section header is not found in either string. Section detection: scans for a line whose trimmed, lowercased content equals strings.ToLower(section) (with optional leading '#' stripped and trailing ':' stripped).

func DiffText

func DiffText(label, before, after string) string

DiffText returns a unified diff of before and after. Returns an empty string when the two strings are identical.

func Dump

func Dump(label string, v any) string

Dump returns a pretty-printed representation of v with colors disabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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