Back to godoc.org

Package dirhash

v1.6.2
Latest Go to latest

The latest major version is .

Published: Aug 30, 2020 | License: BSD-3-Clause | Module: github.com/rogpeppe/go-internal

Overview

Package dirhash defines hashes over directory trees.

Index

Variables

var DefaultHash = Hash1

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)

type Hash

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier