// FileMd5 returns a md5 hash of a file
FileMd5 returns a md5 hash of a file
// FileMd5 returns a md5 hash of a file
func FileMd5(path string) (string, error) {
	file, err := ioutil.ReadFile(path)
	if err != nil {
		return "", err
	}
	hasher := md5.New()
	hasher.Write([]byte(file))
	return hex.EncodeToString(hasher.Sum(nil)), nil
}
func FileMd5 ( path string ) ( string , error ) { file , err := ioutil . ReadFile ( path ) if err != nil { return " " , err } hasher := md5 . New ( ) hasher . Write ( [ ] byte ( file ) ) return hex . EncodeToString ( hasher . Sum ( nil ) ) , nil }
FileMd5 returns a md5 hash of a file
FileMd5 returns a md5 hash of a file