package
0.0.0-20241001140320-1cfc79ecf30e
Repository: https://github.com/nix-community/go-nix.git
Documentation: pkg.go.dev

# Functions

CompressHash takes an arbitrary long sequence of bytes (usually a hash digest), and returns a sequence of bytes of length newSize.
FromHashTypeAndDigest constructs a Hash from hashType and digest.
No description provided by the author
NewPool returns a sync.Pool of a Hash with the given hashType It creates one Instance to check the hash type is supported (which is then put in the pool), to avoid panic()'ing later, as the sync.Pool New() function doesn't allow errors.
ParseNixBase32 returns a new Hash struct, by parsing a hashtype:nixbase32 string, or an error.

# Structs

Hash can be used to calculate and display various hashes.