hash

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher struct {
	Underlying func() hash.Hash
	// contains filtered or unexported fields
}

func (Hasher) Hash

func (h Hasher) Hash(v any, opts ...Option) (Sum, error)

type Option

type Option func(*Hasher)

func DisallowMapKeys

func DisallowMapKeys[T comparable](keys ...T) Option

type Sum

type Sum []byte

func (Sum) Hex

func (s Sum) Hex() string

Jump to

Keyboard shortcuts

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