package
module
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: May 27, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
README
¶
hash
Ultra-fast hashing of arbitrary bytes.
Usage
x := hash.Bytes([]byte("Hello World"))
Benchmarks
Hashing 10 KB:
BenchmarkBytes-12 30485769 37.9 ns/op 0 B/op 0 allocs/op
BenchmarkString-12 29912976 38.3 ns/op 0 B/op 0 allocs/op
BenchmarkReader-12 19175532 61.3 ns/op 32 B/op 1 allocs/op
Style
Please take a look at the style guidelines if you'd like to make a pull request.
Want to see your own name here?
Documentation
¶
Bytes hashes the given byte slice.
Reader hashes all the bytes in the given reader.
String hashes the given string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.