▲ 7 ▼ Equalfile is a pure Go package for comparing files
// Python:
import filecmp
if filecmp.cmp(filename1, filename2, shallow=False):
// Go:
import "github.com/udhos/equalfile"
if equal, err := equalfile.CompareFile(filename1, filename2); err != nil && equal {
Register to comment or vote on this story