dirhash

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: BSD-3-Clause Imports: 2 Imported by: 11

Documentation

Overview

Package dirhash is a thin forwarding layer on top of golang.org/x/mod/sumdb/dirhash. See that package for documentation.

Deprecated: use golang.org/x/mod/sumdb/dirhash instead.

Index

Constants

This section is empty.

Variables

View Source
var DefaultHash = dirhash.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 = dirhash.Hash

Jump to

Keyboard shortcuts

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