Help us shape the future of Go! Take the 2026 Go Developer Survey

hash

package
v0.153.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package hash provides non-cryptographic hash functions for template use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct{}

Namespace provides template functions for the "hash" namespace.

func New

func New() *Namespace

New returns a new instance of the hash-namespaced template functions.

func (*Namespace) FNV32a

func (ns *Namespace) FNV32a(v any) (int, error)

FNV32a hashes v using fnv32a algorithm.

func (*Namespace) XxHash

func (ns *Namespace) XxHash(v any) (string, error)

XxHash returns the xxHash of the input string.

Jump to

Keyboard shortcuts

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