Implements the SHA256 tree hash algorithm (as used by aws glacier)
Download and install :
$ go get github.com/downeast/treehash
Add it to your code :
import "github.com/downeast/treehash"
file, _ := os.Open("filename")
th := treehash.New()
io.Copy(th, file)
checksum := fmt.Sprintf("%x", th.Sum(nil))