Documentation ¶
Overview ¶
Package diff implements a Diff function that compare two inputs using the 'diff' tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceTempFilename ¶
ReplaceTempFilename replaces temporary filenames in diff with actual one.
ref: https://github.com/golang/tools/blob/master/cmd/goimports/goimports.go
Example:
--- /tmp/gofmt316145376 2017-02-03 19:13:00.280468375 -0500 +++ /tmp/gofmt617882815 2017-02-03 19:13:00.280468375 -0500 ... -> --- path/to/file.go.orig 2017-02-03 19:13:00.280468375 -0500 +++ path/to/file.go 2017-02-03 19:13:00.280468375 -0500 ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.