hash

package
v0.0.0-...-41e44c1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShortHash

func ShortHash(data ...string) string

ShortHash will return the first 4 bytes in base16 of the sha1 sum of the provided data.

For example:

  ShortHash("ActiveState-TestProject-python3")
	 => e784c7e0

This is useful for creating a shortened namespace for language installations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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