Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 969 Bytes

README.md

File metadata and controls

46 lines (32 loc) · 969 Bytes

hashdir

Go Reference Tests

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

Requests or bugs?

https://github.com/gosimple/hashdir/issues

Installation

go get -u github.com/gosimple/hashdir

License

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.