package
1.3.4
Repository: https://github.com/varunram/essentials.git
Documentation: pkg.go.dev

# Functions

BToMb converts bytes (b) to Mb.
GetHomeDir gets the home directory of the user.
GetRandomString gets a random string of length n.
IntToHumanTime converts an int64 to human readable time.
PrintMemUsage outputs the current, total and OS memory being used.
SHA3hash gets the SHA3-512 hash of the passed string.
StringToHumanTime converts an int64 in string form to human readable time.
StringToIntTime converts a string to unix time.
Timestamp gets the human readable timestamp.
ToBigInt converts a passed interface to big.Int.
ToByte converts a passed interface to bytes.
ToFloat converts a passed interface to float.
ToInt converts a passed interface to int.
ToString converts a passed interface to string.
ToUint16 converts a passed interface to uint16.
Unix gets the unix timestamp.

# Variables

ErrTypeNotSupported is an error returned if the given type conversion isn't supported yet.