package
0.5.4
Repository: https://github.com/chesscomputing/golib.git
Documentation: pkg.go.dev

# Functions

CheckPattern is a generic functino to check given key value within Lexicon map.
helper function to create Lexicon error.
LoadPatterns loads Lexion patterns from given file the format of the file is a list of the following dicts: [ {"name": <name>, "patterns": [list of patterns], "length": int},...].
Validate provides validation of all input parameters of HTTP request.
ValidatePostPayload function to validate POST request.
ValidateRecord validates given JSON record.

# Constants

generic Lexicon error.
13 marshal error.
14 pattern error.
11 reader error.
12 unmarshal error.
15 validate error.

# Variables

GenericErr represents generic lexicon error.
No description provided by the author
InvalidParamErr represents generic error for invalid input parameter.
InvalidRequestErr represents generic invalid request error.
LexiconPatterns represents Lexicon patterns.
NotImplementedApiErr represents generic not implemented api error.
PatterErr represents generic error for invalid input parameter.
No description provided by the author
aux patterns.
ValidationErr represents generic validation error.
Verbose defines module verbosity level.

# Structs

Lexicon represents single lexicon pattern structure.
LexiconError represents common structure for Lexicon errors.
LexiconPattern represents single lexicon compiled pattern structure.
StrPattern represents string object pattern.

# Interfaces

ObjectPattern represents interface to check different objects.