Categorygithub.com/wanghaha-dev/u
modulepackage
0.0.0-20220627101129-e8f14ee96142
Repository: https://github.com/wanghaha-dev/u.git
Documentation: pkg.go.dev

# README

U

U是一款模块化的Golang基础开发框架。模块丰富、易用性高、通用性强。

安装

go get -u github.com/wanghaha-dev/u

# Functions

Author contact author.
Cfg 获取config对象.
No description provided by the author
ConcurrentHandle 并发任务.
Cron 获取cron对象.
Debug 调试输出.
DebugBlue 调试输出-蓝色.
DebugCyan 调试输出-青色.
DebugGray 调试输出-灰色.
DebugGreen 调试输出-绿色.
DebugYellow 调试输出-黄色.
Delay 计算耗时.
Exist check path exists.
No description provided by the author
Foreach 循环执行.
Format 格式化字符串.
GetError 获取错误.
GetErrorCallback 获取错误并执行回调函数.
Handle server handle.
HasExists 判断元素是否存在与某列表.
HmacSHA1 hmac sha1.
HmacSHA256 hmac sha256.
HmacSHA512 hmac sha512.
Http 获取http请求对象.
Image 获取img对象.
Join 组合字符串.
Json 转Json字符串.
JsonBytesGet 获取指定key的值.
JsonExists 是否存在.
JsonGet 获取指定key的值.
JsonGetMany 获取多个key值.
JsonGetManyBytes 获取多个key值.
JWT 获取jwtObj对象.
Log 获取log对象.
LogFile 日志文件.
Mail 获取_mail对象.
MD5 MD5加密.
MD5Salt MD5加盐.
NewColor create style.
No description provided by the author
PBEDecrypt 解密.
PBEEncrypt 加密.
PoolGoroutine 携程池.
Print = fmt.Print.
PrintBlue 蓝色不换行.
PrintCyan 青色不换行.
Printf = fmt.Printf.
PrintfBlue 蓝色-格式化输出.
PrintfCyan 青色-格式化输出.
PrintfGray 灰色-格式化输出.
PrintfGreen 绿色-格式化输出.
PrintfRed 红色-格式化输出.
PrintfYellow 黄色-格式化输出.
PrintGray 灰色不换行.
PrintGreen 绿色不换行.
Println = fmt.Println.
PrintlnBlue 蓝色换行.
PrintlnCyan 青色换行.
PrintlnGray 灰色换行.
PrintlnGreen 绿色换行.
PrintlnRed 红色换行.
PrintlnYellow 黄色换行.
PrintRed 红色不换行.
PrintYellow 黄色不换行.
Rand32Uid 获取32位长度uid.
RandCheckCode 获取6位验证码.
RandNum 生成随机数.
RandRangeNum 生成指定范围的随机数.
RandStr 生成随机字符串.
Server 获取server对象.
Sf 格式化拼接字符串.
SHA1 sha1加密.
SHA1Salt sha1加密-加盐.
SHA256 sha256加密.
SHA256Salt sha256加密-加盐.
SHA512 sha512加密.
SHA512Salt sha512加密-加盐.
SplitSpace 以空格分割字符串-正则方式.
Time 获取uTime对象.
ToBool to bool.
ToBytes to []byte.
ToFloat32 to float32.
ToFloat64 to float64.
ToInt to int.
ToInt16 to int16.
ToInt32 to int32.
ToInt64 to int64.
ToInt8 to int8.
ToString val to string.
ToUint to uint.
ToUint16 to uint16.
ToUint32 to uint32.
ToUint64 to uint64.
ToUint8 to uint8.
Type get data type.
UnJson json反序列化.
Unzip files.
UUID 获取UUID.
UUIDStr 获取UUID字符串, 不含"-".
UUIDStrUpper 获取UUID字符串, 不含"-", 转大写.
No description provided by the author
No description provided by the author
Version 输出版本.
Zip zip files.

# Constants

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
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
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
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
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
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
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
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
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
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
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
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Type aliases

BodyParams Body参数别名.
Cookies cookies.
Headers 请求头别名.
JSONParams JSON参数别名.
No description provided by the author
Params URL参数别名.
RawParams 参数别名.