Lines returns a diff of two strings, line-by-line.
(want, got string)
| 10 | |
| 11 | // Lines returns a diff of two strings, line-by-line. |
| 12 | func Lines(want, got string) string { |
| 13 | return Diff(strings.Split(want, "\n"), strings.Split(got, "\n")) |
| 14 | } |
| 15 | |
| 16 | // Diff is a silly diff implementation |
| 17 | // that compares the provided slices and returns a diff of them. |