package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

ErrCast is returned when a cast fails AND the program should not panic.
ExpandPathnames takes a set of paths and turns them into absolute paths.
FileExists check if the file with the given path exits.
FormatRFC3339 returns the string representation of the UTC value of the given time in RFC3339Nano format.
GetenvBool is the way to check an env var as a boolean.
Hash is the global IPFS hash function.
IsValidHash checks whether a given hash is valid (b58 decodable, len > 0).
NewSeededRand returns a random bytes reader initialized with the given seed.
NewTimeSeededRand returns a random bytes reader which has been initialized with the current time.
ParseRFC3339 parses an RFC3339Nano-formatted time stamp and returns the UTC time.
Partition splits a subject 3 parts: prefix, separator, suffix.
RPartition splits a subject 3 parts: prefix, separator, suffix.
XOR takes two byte slices, XORs them together, returns the resulting slice.

# Constants

DefaultIpfsHash is the current default hash function used by IPFS.

# Variables

Debug is a global flag for debugging.
ErrNotImplemented signifies a function has not been implemented yet.
ErrSearchIncomplete implies that a search type operation didn't find the expected node, but did find 'a' node.
ErrTimeout implies that a timeout has been triggered.
TimeFormatIpfs is the format ipfs uses to represent time in string form.

# Type aliases

MultiErr is a util to return multiple errors.