dirhash

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package dirhash defines hashes over directory trees.

Index

Constants

This section is empty.

Variables

View Source
var DefaultHash = Hash1

Functions

func DirFiles

func DirFiles(dir, prefix string) ([]string, error)

func Hash1

func Hash1(files []string, open func(string) (io.ReadCloser, error)) (string, error)

func HashDir

func HashDir(dir, prefix string, hash Hash) (string, error)

func HashZip

func HashZip(zipfile string, hash Hash) (string, error)

Types

type Hash

type Hash func(files []string, open func(string) (io.ReadCloser, error)) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL