package
1.2.4
Repository: https://github.com/helays/utils.git
Documentation: pkg.go.dev

# Functions

CheckReqPost 检查请求是否post.
Closehttpserver 关闭http server.
Copy 复制数据,并自动刷新.
CopyBuffer 复制数据,并自动刷新.
Forbidden 设置系统返回403.
Getip 获取客户端IP.
No description provided by the author
JsonDecode 解析json数据.
MethodNotAllow 405.
NotFound 设置返回 404.
Play 公共函数文件.
No description provided by the author
No description provided by the author
SetRequestDefaultPage 设置 打开的默认页面 defaultPage string 默认打开页面 root 网站更目录 path string.
SetReturn 设置 返回函数Play.
No description provided by the author
SetReturnCode 设置返回函数 code值异常,会记录日志.
SetReturnData 设置返回函数 如果 code 异常,不想记录日志,就可以直接使用这个.
SetReturnError 错误信息会记录下来,同时也会反馈给前端.
No description provided by the author
SetReturnFile 直接讲文件反馈给前端.
SetReturnWithoutError ,错误信息会记录下来,但是只会反馈msg.
SwitchDebug 切换调试模式开关.

# Structs

No description provided by the author
No description provided by the author
LoginInfo 登录信息.
No description provided by the author