diff

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffsToJSON

func DiffsToJSON(diffs []*ManifestDiff, fileName string, ref string) string

func DiffsToPatch

func DiffsToPatch(diffs []*ManifestDiff, fileName string) string

func DiffsToPrettyPrint

func DiffsToPrettyPrint(diffs []*ManifestDiff, filename string) string

Types

type JSONOutput

type JSONOutput struct {
	File  string          `json:"file"`
	Ref   string          `json:"ref"`
	Diffs []*ManifestDiff `json:"diffs"`
}

type ManifestDiff

type ManifestDiff struct {
	Type string `json:"type"`
	Text string `json:"text"`
	Line int    `json:"line"`
}

func CalculateDiff added in v1.8.1

func CalculateDiff(a, b string) ([]*ManifestDiff, bool)

func FilterDiffs

func FilterDiffs(diffs []*ManifestDiff, verbosityLevel string, chunkSize int) []*ManifestDiff

Jump to

Keyboard shortcuts

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