Documentation ¶ Overview ¶ Package diff computes differences between strings. Index ¶ func Diff(orig, expect string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Diff ¶ func Diff(orig, expect string) (string, error) Diff takes the diff between orig and expect. Returns empty string if equals, otherwise returns the diff in unified diff format. In tests, it is recommended to output the diff result into a file, instead of directly outputting to log message. Types ¶ This section is empty. Source Files ¶ View all Source files diff.go Click to show internal directories. Click to hide internal directories.