Documentation
¶
Index ¶
- func ArrayNotInArrayString(original []string, search []string) []string
- func ConfGetInt(path string) int
- func ConfGetInt64(path string) int64
- func ConfGetString(path string) string
- func ConfGetStringSlice(path string) []string
- func ConfGetbool(path string) bool
- func DesDecrypt(decrypted, key string) string
- func DesEncrypt(text, key string) string
- func Dump(vs ...any)
- func EmojiDecode(s string) string
- func EmojiEnCode(s string) string
- func GoroutineFunc(fun interface{}, args ...interface{}) (err error)
- func InArrayString(v string, m *[]string) bool
- func Int(v any) int
- func Int64(v any) int64
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RandomID() uint64
- func RandomIDInt64() int64
- func Recover()
- func String(v any) string
- func StringToInt(str string) int
- func StringToInt64(str string) int64
- func ToInt(v any) (int, error)
- func ToInt64(v any) (int64, error)
- func ToString(v any) (string, error)
- func ToUint(v any) (uint64, error)
- func Uint(v any) uint64
- type Encryption
- type KeySizeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayNotInArrayString ¶
查找数组中某值是否在数组中
func ConfGetInt ¶
func ConfGetInt64 ¶
func ConfGetString ¶
func ConfGetStringSlice ¶
func ConfGetbool ¶
func GoroutineFunc ¶
func GoroutineFunc(fun interface{}, args ...interface{}) (err error)
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func RandomIDInt64 ¶
func RandomIDInt64() int64
func Recover ¶
func Recover()
用法 通常此函数放在defer 之后 ,形如: defer Recover() 通常是这样用
go func(){ defer Recover() dosomething() }()
func StringToInt ¶
func StringToInt64 ¶
Types ¶
type Encryption ¶
type Encryption struct {
Key []byte
}
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.