# Functions
AESDecrypt AES加密 plantText 密码 key密钥 16字节,24字节,32字节 return 明文.
AESEncrypt AES加密 plantText 明文 key密钥 16字节,24字节,32字节 return 密文.
No description provided by the author
No description provided by the author
No description provided by the author
Bytes2Hex returns the hexadecimal encoding of d.
No description provided by the author
No description provided by the author
Contain 判断obj是否在target中,target支持的类型arrary,slice,map.
Copy copies the file or directory from source path to destination path with the standart copy environment.
CopyBytes returns an exact copy of the provided bytes.
Delete 删除文件.
No description provided by the author
Exists checks whether the given file exists or not.
ExistsOk checks whether the given file exists or not.
No description provided by the author
FromHex returns the bytes represented by the hexadecimal string s.
GetAbsolutePath 获取当前执行文件的绝对路径目录 subfolder 子目录,如果没有,自动创建.
GetCurrentPath 获取当前执行文件的路径.
No description provided by the author
No description provided by the author
No description provided by the author
MD5 加密.
No description provided by the author
Hex2Bytes returns the bytes represented by the hexadecimal string str.
Hex2BytesFixed returns bytes of a specified fixed length flen.
HmacMD5 加密.
HmacSHA1 加密.
No description provided by the author
IsChinaMobile 检验是否为合法的中国手机号, 不是那么太精细 只要是 13,14,15,18 开头的 11 位数字就认为是中国手机号.
IsChinaMobileString 同 func IsChinaMobile(b []byte) bool.
IsFile checks wether the given file is a directory or not.
IsFileOk checks whether the given file is a directory or not.
IsMail 检验是否为合法的电子邮箱, 考虑到各个网站的 mail 要求不一样, 这里匹配比较宽松 邮箱用户名可以包含 0-9, A-Z, a-z, -, _, .
IsMailString 同 func IsMail(b []byte) bool.
IsNickname 检验是否为合法的昵称, 合法的字符有 0-9, A-Z, a-z, _, 汉字 字符 '_' 只能出现在中间且不能重复, 如 "__".
IsNicknameString 同 func IsNickname(b []byte) bool.
IsNumber 是否整数值.
IsNumberString 同 func IsNumber(b []byte) bool.
IsRealNumber 是否实数值.
IsRealNumberString 同 func IsRealNumber(b []byte) bool.
IsUserFile ignores editor backups, hidden files and folders/symlinks.
IsUserName 检验是否为合法的用户名, 合法的字符有 0-9, A-Z, a-z, _ 第一个字母不能为 _, 0-9 最后一个字母不能为 _, 且 _ 不能连续.
IsUserNameString 同 func IsName(b []byte) bool.
LeftPadBytes zero-pads slice to the left up to length l.
MD5 加密.
MkdirAll 创建文件夹@param file 文件夹路径.
NewString 初始化字符串,自动转型.
NewStringByBool 通过bool初始化字符串.
NewStringByFloat 通过float初始化字符串.
NewStringByInt 通过int初始化字符串.
NewStringByUInt 通过int初始化字符串.
PKCS7Padding PKCS7填充 ciphertext 明文 blockSize 分组大小 return 填充后的明文.
PKCS7UnPadding PKCS7清理填充 ciphertext 填充后的明文 blockSize 分组大小 return 恢复后的明文.
PrintFile 打印文件里的文本内容.
No description provided by the author
RightPadBytes zero-pads slice to the right up to length l.
SHA1 加密.
SHA256 加密.
Stat returns a FileInfo describing the named file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TimeFormat 格式化时间@param format 在go中,为2006-01-02 15:04:05.
No description provided by the author
No description provided by the author
WriteFile 写入内容到文件@param name 文件名@param content 内容@param append 是否追加到末尾.
# Constants
NilString 定义空串的关键字.
# Variables
No description provided by the author
# Interfaces
AESProtocal String扩展,获得AES加密方法.
FloatProtocal 强化float的扩展方法.
IntProtocal 强化int的扩展方法.
StringProtocal 强化String的扩展方法.