HashStr

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 0 Imported by: 2

README

HashStr: Hash a string into a number or into a 5 char string

license

Hash a string in go (golang) into a number or into a 5 char "name".

Two functions are implemented HashStr that takes a string and returns a number.

The second function HashStrToName uses HashStr and returns a 5 character "name" for the number.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashStr

func HashStr(s []byte) (n int)

Hashes a string into a number

func HashStrToName

func HashStrToName(s string) (rv string)

Hashes a string into a set of 5 bytes - a name for the string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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