hash

package standard library
go1.26.11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package hash implements hash functions used in the compiler toolchain.

Index

Constants

View Source
const Size32 = 32

Size32 is the size of the 32-byte hash functions New32 and Sum32.

Variables

This section is empty.

Functions

func New32

func New32() hash.Hash

New32 returns a new hash.Hash computing the 32-byte hash checksum. Note that New32 and Sum32 compute different hashes.

func Sum32

func Sum32(data []byte) [32]byte

Sum32 returns a 32-byte checksum of the data. Note that Sum32 and New32 compute different hashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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