# Functions
No description provided by the author
No description provided by the author
contains checks if a slice contains a particular element.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LogError logs error messages with context including the correct caller location.
LogFatal logs critical errors and terminates the application.
LogInfo logs an informational message with formatting options.
parseHexSubstring extracts an integer value from a specified hex substring within a larger hex string, based on the offset and length in bytes.
ParseHexSubstringBigInt extracts a large integer value from a specified hex substring within a larger hex string, based on the offset and length in bytes, returning *big.Int.
ParseHexToASCIIString converts a segment of a hex string starting at byteOffset for byteLength bytes into its ASCII string representation.
PrettyPrintJSON takes any data and prints it in an indented JSON format.
RespondWithError logs the error, captures file/line, and sends a detailed error response.
Splice function to remove and optionally add elements to a slice.
splitIntoPairs splits a string into pairs of two characters.
StopLogging stops the periodic flushing and closes log files.
StructSliceToMapSlice converts a slice of structs into a slice of map[string]any.
StructToMap converts a struct to a map[string]any using JSON marshaling and unmarshaling.
Helper function to wrap error with colored file and line context.
# Variables
Email regex pattern.