MCPcopy Index your code
hub / github.com/expr-lang/expr / GetContextDiffString

Function GetContextDiffString

internal/difflib/difflib.go:763–767  ·  view source on GitHub ↗

Like WriteContextDiff but returns the diff a string.

(diff ContextDiff)

Source from the content-addressed store, hash-verified

761
762// Like WriteContextDiff but returns the diff a string.
763func GetContextDiffString(diff ContextDiff) (string, error) {
764 w := &bytes.Buffer{}
765 err := WriteContextDiff(w, diff)
766 return string(w.Bytes()), err
767}
768
769// Split a string on "\n" while preserving them. The output can be used
770// as input for UnifiedDiff and ContextDiff structures.

Calls 1

WriteContextDiffFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…