package
0.0.0-20240517150605-00b51407cb43
Repository: https://github.com/ariden83/blockchain.git
Documentation: pkg.go.dev

# Functions

BigIntsFromBytes decodes two big.Int pointers from a byte slice.
BigIntsFromHex decodes two big.Int pointers from a hexdecimal string.
BigIntsToBytes encodes two big.Int pointers as a byte slice.
BigIntsToHex encodes two big.Int pointers as a hexdecimal string.
BuildPort buils a port string from a port number.
BytesToBigInt decodes a big.Int pointer from a byte slice.
BytesToHex transforms a byte slice to a hexadecimal string.
No description provided by the author
No description provided by the author
FromGob decodes a golang byte slice (gob) to an interface pointer.
FromJSON decodes a json byte slice to an interface pointer.
GetQuery gets the query parameter of index "key".
GetRoute gets the route parameter of index "key".
GetStrChunk safely splits a string by an arbitrary separator and returns the chunk at position "index".
HexHash generates a hash for any given interface.
HexHash generates a hash for any given string.
HexToBytes safely transforms a hexadecimal string to a byte slice.
PanicError panics the error unless it is nill.
RandomAlphanum generates a random alpha-numeric string.
RandomHash generates a random lowercase hex hash.
RandomString generates a random string.
Reverse reverses an arbitrary slice referenced by a pointer interface.
SeedRNG seeds the Random Number Generator with the current time.
No description provided by the author
No description provided by the author
FromGob encodes an interface pointer to golang byte slice (gob).
ToJSON encodes an interface to a json byte slice.
Wait pauses the current go routine until STDIN receives a new line.

# Variables

No description provided by the author