package
0.1.0
Repository: https://github.com/ooaklee/ghatd.git
Documentation: pkg.go.dev

# Functions

DecodeRequestBody attempts to decode request to object.
GenerateNanoId is returning a nano id.
GenerateUuidV4 returns Uuidv4 string.
OutputBasicLogString attempts to output log in a JSON format otherwise will default to plain text.
StringRemoveMultiSpace subsitutes all multispace with single space.
StringStandardisedToLower returns a string with no explicit spacing strategy that is all lowercase and standardised.
StripNonAlphanumericCharactersRegex handles remove all non-alpanumeric charactes from passed string.
TimeNowUTC returns time as string in RFC3339 format w/o timezone.

# Constants

Base64EncodedRegex is pattern to identify if something is base64 format Another regex: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$".
EmailRegex regex patter for email.
ExampleEmailAddressDomainRegex regex pattern for the an example email address domain.
TimeNowUTCAsStringRegex basic regex for formatted time as string.
UserRoleIdSuffixRegex is the pattern used when versioning the different roles (from payment integrators).
UuidV4Regex regex pattern for Uuidv4.