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
Click to show internal directories.
Click to hide internal directories.