Generate hash of all files and they paths for specified directory.
package main
import (
"fmt"
"github.com/gosimple/hashdir"
)
func main() {
dirHash, err := hashdir.Make("./someDir/", "md5")
fmt.Println(dirHash)
}
Supported hashes:
- md5
- sha1
- sha256
- sha512
https://github.com/gosimple/hashdir/issues
go get -u github.com/gosimple/hashdir
The source files are distributed under the Mozilla Public License, version 2.0, unless otherwise noted. Please read the FAQ if you have further questions regarding the license.