Computing message digest in golang for potentially large files.
go get -d gopkg.in/codingsince1985/checksum.v1
package main
import (
"fmt"
"gopkg.in/codingsince1985/checksum.v1/md5"
)
func main() {
file := "/home/jerry/Downloads/ubuntu-gnome-15.04-desktop-amd64.iso"
md5sum, _ := md5.MD5sum(file)
fmt.Println(md5sum)
}
checksum is distributed under the terms of the MIT license. See LICENSE for details.