holys / checksum

Message digest for large files in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

checksum

GoDoc

Computing message digest in golang for potentially large files.

Install

go get -d gopkg.in/codingsince1985/checksum.v1

Usage

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)
}

License

checksum is distributed under the terms of the MIT license. See LICENSE for details.

About

Message digest for large files in Go

License:MIT License


Languages

Language:Go 100.0%