Skip to content

gosimple/hashdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.