Versions in this module Expand all Collapse all v0 v0.2.1 Dec 8, 2021 v0.2.0 Dec 6, 2021 Changes in this version + func BytesConvertToUTF8(bytes []byte, charset string) ([]byte, error) + func FileConvertToUTF8(file io.Reader, charset string) (io.Reader, error) + func FileGuessEncoding(bytes []byte) string v0.1.0 Nov 5, 2021 Changes in this version + var ErrTokenExpired = errors.New("JWT Token is expired") + var ErrTokenInvalid = errors.New("JWT Token was invalid") + var ErrTokenKidNotFound = errors.New("Token's Key Identifier not found") + var ErrTokenMalformed = errors.New("JWT Token is malformed") + var ErrTokenNotActive = errors.New("Token is not valid yet") + var ErrTokenUnableGetCAPublic = errors.New("Token cannot get CA Public Key") + var ErrTokenUnexpectedSigningMethod = errors.New("Token unexpected signing method") + func BytesMarshal(i interface{}) ([]byte, error) + func BytesUnMarshal(data []byte, i interface{}) error + func ExecCmdPipe(command string, args []string, o io.Writer, e io.Writer) ([]byte, []byte, error) + func InitZapLog(v *viper.Viper) (*zap.Logger, error) + func MapGetKeys(m interface{}) ([]interface{}, error) + func MapGetSortedKeys(m interface{}, reverse bool) interface + func MapRemoveNulls(m map[string]interface{}) + func MapStringMerge(map1, map2 interface{}) (interface{}, error) + func SliceFindElemStr(slice []string, val string) int + func SliceIsElemIn(array []interface{}, elem interface{}, fn CompareFunc) int + func StringBuild(strs ...string) string + func StringBuildWithSep(sep rune, strs ...string) string + func StringConvertToMapSimple(str, elSep, kvSep string) (map[string]interface{}, error) + func StringParseFloat(str string) (float64, error) + func StringStripAnsi(str string) string + type CompareFunc func(elem1 interface{}, elem2 interface{}) bool + type JWTToken struct + func NewJWTToken() *JWTToken + func (t *JWTToken) ParseToken(tokenString string) (map[string]interface{}, error) + func (t *JWTToken) SetJwksURI(uri string) + func (t *JWTToken) SetSignKey(key string) + func (t *JWTToken) SetSignMethod(method string)