hash

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheContents

func CacheContents(h Hasher, contents []byte) error

func CachePath

func CachePath(h Hasher) (string, error)

func CachePathExists

func CachePathExists(h Hasher) (string, error)

Types

type Hasher

type Hasher interface {
	Hash() (string, error)
}

Hasher is an interface for types which are able to produce a hash based on their internal state.

Jump to

Keyboard shortcuts

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