hashcode

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MPL-2.0 Imports: 3 Imported by: 113

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String deprecated

func String(s string) int

String hashes a string to a unique hashcode.

Deprecated: This will be removed in v2 without replacement. If you need its functionality, you can copy it, import crc32 directly, or reference the v1 package.

crc32 returns a uint32, but for our use we need and non negative integer. Here we cast to an integer and invert it if the result is negative.

func Strings deprecated

func Strings(strings []string) string

Strings hashes a list of strings to a unique hashcode.

Deprecated: This will be removed in v2 without replacement. If you need its functionality, you can copy it, import crc32 directly, or reference the v1 package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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