hashes

package
v0.0.0-...-d70b833 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: BSD-2-Clause-Views Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HashNames []string

List of all hash functions.

Functions

This section is empty.

Types

type Hash

type Hash interface {
	// Write implements io.Writer.
	Write([]byte) (int, error)
	// Digest returns the digest of the hash with filename-friendly characters,
	// along with a 64-bit hash used for inode numbers.
	Digest() (string, uint64)
}

Hash is a size-agnostic version of the hash.Hash interface.

type HashFunc

type HashFunc func() Hash

func GetHashFunc

func GetHashFunc(name string) HashFunc

Jump to

Keyboard shortcuts

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