MCPcopy Create free account
hub / github.com/pmezard/go-difflib / GetUnifiedDiffString

Function GetUnifiedDiffString

difflib/difflib.go:635–639  ·  view source on GitHub ↗

Like WriteUnifiedDiff but returns the diff a string.

(diff UnifiedDiff)

Source from the content-addressed store, hash-verified

633
634// Like WriteUnifiedDiff but returns the diff a string.
635func GetUnifiedDiffString(diff UnifiedDiff) (string, error) {
636 w := &bytes.Buffer{}
637 err := WriteUnifiedDiff(w, diff)
638 return string(w.Bytes()), err
639}
640
641// Convert range to the "ed" format.
642func formatRangeContext(start, stop int) string {

Calls 1

WriteUnifiedDiffFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…