hash

package
v0.0.0-...-016edcc Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashArray

func HashArray[T any](h Hash, a []T, f func(T) string)

func HashBytes

func HashBytes(s []byte) string

func HashMap

func HashMap[K comparable, V any](h Hash, a map[K]V, f func(K, V) string)

func HashString

func HashString(s string) string

Types

type Hash

type Hash interface {
	String(val string)
	I64(val int64)
	UI32(val uint32)
	Bool(val bool)

	Sum() string

	io.Writer
}

func NewDebuggableHash

func NewDebuggableHash(id func() string) Hash

func NewHash

func NewHash() Hash

Jump to

Keyboard shortcuts

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