You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
175 B
13 lines
175 B
package abstract_sql
|
|
|
|
import (
|
|
"crypto/md5"
|
|
"io"
|
|
)
|
|
|
|
// returns a 128 bit hash
|
|
func md5hash(dir string) []byte {
|
|
h := md5.New()
|
|
io.WriteString(h, dir)
|
|
return h.Sum(nil)
|
|
}
|