package
1.5.3
Repository: https://github.com/forging2012/go-admin-core.git
Documentation: pkg.go.dev

# Packages

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

# Functions

Assert 条件断言 当断言条件为 假 时触发 panic 对于当前请求不会再执行接下来的代码,并且返回指定格式的错误信息和错误码.
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
GenerateMsgIDFromContext 生成msgID.
GenerateRandomKey16 生成16为随机字符串.
GenerateRandomKey20 生成20位随机字符串.
GenerateRandomKey6 生成6为随机字符串.
发送GET请求 url: 请求地址 response: 请求返回的内容.
GetCurrentPath 获取当前路径,比如:E:/abc/data/test.
No description provided by the author
No description provided by the author
GetFileSize 获取文件大小.
获取局域网ip地址.
获取外网ip地址.
GetOrm 获取orm连接.
No description provided by the author
HasError 错误断言 当 error 不为 nil 时触发 panic 对于当前请求不会再执行接下来的代码,并且返回指定格式的错误信息和错误码 若 msg 为空,则默认为 error 中的内容.
获取URL中批量id并解析.
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
PathExist 判断目录是否存在.
Post
发送POST请求 url: 请求地址 data: POST请求提交的数据 contentType: 请求体格式,如:application/json content: 请求放回的内容.
No description provided by the author
No description provided by the author
No description provided by the author
SetPassword 根据明文密码和加盐值生成密码.
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

# Constants

No description provided by the author
开发模式.
生产模式.
测试模式.
mysql数据库标识.
sqlite.
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

# Structs

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

# Type aliases

No description provided by the author