Slide 10
Slide 10 text
fileのハッシュを求める
open := func(fn string) (io.ReadCloser, error) { return os.Open(fn) }
filePath := "go.mod"
s, err := dirhash.Hash1([]string{filePath}, open)
if err != nil { fmt.Println(err.Error()) }
fmt.Println(s)
https://go.dev/play/p/7aEARvckJjD