apparently `go fmt` doesn't run in subdirs
make a DigestCalculator interface
make it easy to set your own DigestCalculator