Documentation ¶
Index ¶
- func CopyDir(src string, dst string) error
- func CopyFile(src, dst string) error
- func FileWrite(filePath string, writeContent []byte) error
- func GetMapKeys(oldMap map[string]string) []string
- func GetMapValues(oldMap map[string]string) []string
- func GetUserRealIP(r *http.Request) string
- func MapBuildQuery(data map[string]interface{}) string
- func PasswordEncrypt(password string) string
- func PathExists(path string) bool
- func PathIsDir(path string) bool
- func PathIsFile(path string) bool
- func PathMkdirAll(filePath string)
- func SliceInt64IndexOf(seq int64, slice []int64) int
- func SliceStringIndexOf(seq string, slice []string) int
- type Broadcast
- type Encryption
- func (_Encryption *Encryption) DesDecrypt(data string, key []byte) ([]byte, error)
- func (_Encryption *Encryption) DesEncrypt(origData, key []byte) (string, error)
- func (_Encryption *Encryption) PKCS5Padding(cipherText []byte, blockSize int) []byte
- func (_Encryption *Encryption) PKCS5UnPadding(origData []byte) []byte
- type Message
- type Random
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapKeys ¶ added in v1.0.5
GetMapKeys 获取Map key所有值
func GetMapValues ¶ added in v1.0.5
GetMapValues 获取Map val所有值
func MapBuildQuery ¶ added in v1.0.5
MapBuildQuery map转请求参数
func PasswordEncrypt ¶ added in v1.0.6
PasswordEncrypt 密码加密
func SliceInt64IndexOf ¶
SliceInt64IndexOf 数组中是否包含整数
func SliceStringIndexOf ¶
SliceStringIndexOf 数组中是否包含字符串
Types ¶
type Broadcast ¶ added in v1.11.8
type Broadcast struct {
// contains filtered or unexported fields
}
Broadcast 广播
func (*Broadcast) RemoveListener ¶ added in v1.11.8
RemoveListener 移除监听者
type Encryption ¶ added in v1.11.3
type Encryption struct { }
func NewEncryption ¶ added in v1.11.3
func NewEncryption() *Encryption
func (*Encryption) DesDecrypt ¶ added in v1.11.3
func (_Encryption *Encryption) DesDecrypt(data string, key []byte) ([]byte, error)
DesDecrypt des解密
func (*Encryption) DesEncrypt ¶ added in v1.11.3
func (_Encryption *Encryption) DesEncrypt(origData, key []byte) (string, error)
DesEncrypt desc 加密
func (*Encryption) PKCS5Padding ¶ added in v1.11.3
func (_Encryption *Encryption) PKCS5Padding(cipherText []byte, blockSize int) []byte
PKCS5Padding 填充方式PKCS5Padding
func (*Encryption) PKCS5UnPadding ¶ added in v1.11.3
func (_Encryption *Encryption) PKCS5UnPadding(origData []byte) []byte
PKCS5UnPadding 对应 PKCS5Padding
type Random ¶ added in v1.0.1
type Random struct {
// contains filtered or unexported fields
}
Random 随机
func (*Random) SetLetterRunes ¶ added in v1.0.1
SetLetterRunes 设置字母基数
func (*Random) SetNumberRunes ¶ added in v1.0.1
SetNumberRunes 设置数字基数
Click to show internal directories.
Click to hide internal directories.