gotools/gopls/internal/test/compare/text.go

// Text returns a formatted unified diff of the edits to go from want to
// got, returning "" if and only if want == got.
//
// This function is intended for use in testing, and panics if any error occurs
// while computing the diff. It is not sufficiently tested for production use.
func Text(want, got string) string {}

// NamedText is like text, but allows passing custom names of the 'want' and
// 'got' content.
func NamedText(wantName, gotName, want, got string) string {}

// Bytes is like Text but using byte slices.
func Bytes(want, got []byte) string {}