package
1.6.4
Repository: https://github.com/aldelo/common.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ControlCharToASCII converts non-printable control char represented in word to ascii non-printable form.
ControlCharToWord converts non-printable control char to word.
EnvelopWithStxEtxLrc will take content data, wrap with STX, ETX, and calculate LRC to append contentData = do not include STX, ETX, LRC.
EscapeNonPrintable converts non printable \x00 - \x1f to pseudo escaped format.
GetLRC calculates the LRC value for input string, returns blank LRC to indicate error condition (see error for reason) parameters: data = includes the STX and ETX but not LRC if exists returns: string = LRC string value.
IsCreditCardMod10Valid performs modulo 10 credit card number validation.
IsLRCValid checks if the input data that contains the entire string, including STX ETX and LRC, that its LRC is valid for the content of the data.
StripStxEtxLrcFromEnvelop removes STX ETX and LRC from envelopment and returns content data.
UnescapeNonPrintable converts pseudo escaped back to non printable form.

# Constants

Acknowledgement.
'\a' Bell.
'\b' Backspace.
Cancel.
Colon.
Comma.
'\r' Carriage Return.
Device Control 1.
Device Control 2.
Device Control 3.
Device Control 4.
Delete.
Device Idle.
End of Medium.
Enquiry.
End of Transmission.
'\e' Escape.
End of Transmission Block.
End of Text.
'\f' Form Feed.
Field Separator.
Group Separator.
'\t' Horizontal Tab.
'\n' Line Feed.
Negative Ack.
'\0' Null.
Pipe.
Record Separator.
Shift In.
Shift Out.
Start of Header.
Space.
Start of Text.
Substitute.
Synchronize.
Unit Separator.
'\v' Vertical Tab.