rebterlai/crates/dirhash/go_cmp/main.go

18 lines
209 B
Go
Raw Permalink Normal View History

package main
import (
"fmt"
"log"
"golang.org/x/mod/sumdb/dirhash"
)
func main() {
hash, err := dirhash.HashDir("./testdata", "", dirhash.Hash1)
if err != nil {
log.Fatal(err)
}
fmt.Print(hash)
}