Skip to content

Generate hash for folder structure

License

Notifications You must be signed in to change notification settings

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.