转发:https://github.com/vikyd/note/blob/master/golang-checksum.md
里面有详细的代码,我具体操作过,go.mod的h1和整个文件夹的h1都可以进行计算