https://github.com/sger/go-hashdir
Hash a directory path
https://github.com/sger/go-hashdir
go go-programming golang hash
Last synced: 9 months ago
JSON representation
Hash a directory path
- Host: GitHub
- URL: https://github.com/sger/go-hashdir
- Owner: sger
- Created: 2016-03-09T16:31:32.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-15T16:21:23.000Z (almost 10 years ago)
- Last Synced: 2025-04-22T13:39:44.947Z (12 months ago)
- Topics: go, go-programming, golang, hash
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/sger/go-hashdir)
[](https://coveralls.io/github/sger/go-hashdir?branch=master)
# go-hashdir
Simple package for hashing directory strings
```
package main
import (
"fmt"
hashdir "github.com/sger/go-hashdir"
)
func main() {
// Choose sha1 or sha256 hashing algorithms
hash, err := hashdir.Create("test/directory", "md5")
fmt.Println(hash) // returns d41d8cd98f00b204e9800998ecf8427e
}
```
Testing
-----
```ruby
$ go test -v
```
Author
-----
__Spiros Gerokostas__
- [](https://twitter.com/sger)
- :email: spiros.gerokostas@gmail.com
License
-----
go-hashdir is available under the MIT license. See the LICENSE file for more info.