# Functions
BytesConvertToUTF8 converts bytes from a given encoding to UTF8.
BytesMarshal converts a type interface to byte array.
BytesUnMarshal put data of a byte array to a type interface.
ExecCmdPipe executes command shell.
FileConvertToUTF8 converts a file from a given encoding to UTF-8.
FileGuessEncoding tries to guess the encoding of bytes.
No description provided by the author
MapGetKeys returns a slice of keys.
MapGetSortedKeys returns a sorted slice contaning keys of map as interface{}// and need to be casted in the format as you want
This function supports the following type of key: string, int If the given parameter is not a map, it will return nil.
MapRemoveNulls removes all fields with nil value.
MapStringMerge merges 2 string maps of the same type: map2 in map1.
NewJWTToken returns a new JWTToken.
SliceFindElemStr takes a slice and looks for an element in it.
SliceIsElemIn checks if an element is in an array of elements of the same type.
StringBuild concatenates strings together.
StringBuildWithSep concatenates strings together with a separator.
StringConvertToMapSimple converts a string composed of key/value elements separated by a separator to a map.
StringParseFloat is an advance ParseFloat for golang, support scientific notation, comma separated number.
StringStripAnsi removes ANSI escape code from string.
# Variables
ErrTokenExpired denotes a token'vs expire header (exp) has since passed.
ErrTokenInvalid denotes a token was not able to be validated.
ErrTokenKidNotFound denotes token's key identifier not found.
ErrTokenMalformed denotes a token was not formatted as a JWT token.
ErrTokenNotActive denotes a token's not before header (nbf) is in the future.
ErrTokenUnableGetCAPublic denotes not being able to get CA Public Key.
ErrTokenUnexpectedSigningMethod denotes a token was signed with an unexpected signing method.
# Type aliases
CompareFunc is utility func to compare 2 elements.