README ¶ treehash treehash implements SHA256 Tree Hash algorithm, notably used by Amazon Glacier. Installation Download and install : $ go get github.com/cyberdelia/treehash Add it to your code : import "github.com/cyberdelia/treehash" Use file, _ := os.Open("archive.tar.gz") th := treehash.New() io.Copy(th, file) checksum := fmt.Sprintf("%x", th.Sum(nil)) Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func New() hash.Hash Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New() hash.Hash New creates a new hash.Hash computing the Tree Hash checksum. Types ¶ This section is empty. Source Files ¶ View all Source files treehash.go Click to show internal directories. Click to hide internal directories.