Documentation ¶
Overview ¶
diff provides quick and easy string diffing functions based on github.com/sergi/go-diff, mainly for diffing strings in tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CharacterDiff ¶
CharacterDiff returns an inline diff between the two strings, using (++added++) and (~~deleted~~) markup.
func LineDiffAsLines ¶
LineDiffAsLines returns the lines of a linewise diff between the two given strings.
func TrimLinesInString ¶
TrimLinesInString applies TrimSpace to each line in the given string, and returns the new trimmed string. Empty lines are not removed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.