Help us shape the future of Go! Take the 2026 Go Developer Survey

diff

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 4 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) 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 FilterDiffs

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

func LCS

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

Jump to

Keyboard shortcuts

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