Documentation ¶
Index ¶
- Constants
- func B64DecR(input io.Reader, output io.Writer) (err error)
- func B64DecRS(input io.ReadSeeker, output io.Writer) (err error)
- func B64EncR(input io.Reader, output io.Writer) (err error)
- func B64EncRS(input io.ReadSeeker, output io.Writer) (err error)
- func Env(env string, dft string) string
- func InArray[T any](value T, values []T) bool
- func JwtCreateToken(secret, sub string, expire time.Duration) (string, error)
- func JwtParseInfo(token string) (result jwt.MapClaims, err error)
- func JwtParseToken(secret, token string) (sub string, err error)
- func Md5(data []byte) string
- func Md5R(reader io.Reader) (hash string, err error)
- func Md5RS(file io.ReadSeeker) (result string, err error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(plantText []byte) []byte
- func RandomStr(n int) string
- func UTCNow() time.Time
- type AesCBC
Constants ¶
View Source
const ( TimeFormatStandard = "2006-01-02 15:04:05" TimeFormatMill = TimeFormatStandard + ".000" RandomStrNumber = "0123456789" RandomStrLowerSeed = "abcdefghijklmnopqrstuvwxyz" + RandomStrNumber RandomStrSeed = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + RandomStrLowerSeed )
Variables ¶
This section is empty.
Functions ¶
func JwtCreateToken ¶ added in v1.0.0
func JwtParseInfo ¶ added in v1.2.5
func JwtParseToken ¶ added in v1.0.0
func PKCS7Padding ¶ added in v0.1.2
func PKCS7UnPadding ¶ added in v0.1.2
Types ¶
Click to show internal directories.
Click to hide internal directories.