Documentation ¶ Overview ¶ Package diff provides basic text comparison (like Unix's diff(1)). Index ¶ func Files(got, want string) error func Format(got, want string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Files ¶ func Files(got, want string) error Files returns a formatted diff of the two texts from the provided two file names. Files returns nil if they compare equal. func Format ¶ func Format(got, want string) string Format returns a formatted diff of the two texts, showing the entire text and the minimum line-level additions and removals to turn got into want. (That is, lines only in got appear with a leading -, and lines only in want appear with a leading +.) Types ¶ This section is empty. Source Files ¶ View all Source files diff.go Click to show internal directories. Click to hide internal directories.