package
0.0.0-20241120093758-6441636ef7bb
Repository: https://github.com/iredmail/goutils.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
GenPagination 根据当前页 `page`,总条目数 `total`,每页条目数 `limit` 生成分页链接。.
JSONError 返回表示 http 请求错误的 JSON 数据: {"_success": false, "_msg": "<具体错误原因>"}.
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
JSONSuccess 返回表示 http 请求成功的 JSON 数据: {"_success": true, "_msg": ""}.
No description provided by the author
JSONSuccessMap 返回表示 http 请求成功的 JSON 数据,m 的内容也将包含在 JSON 中。
{ "_success": true, "_msg": "", ..
JSONSuccessMsg 返回表示 http 请求成功的 JSON 数据。
{ "_success": true, "_msg": msg, }.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParamPage 用于查询 URL parameters(`/xxx/:page`)的 `page` 参数的值。 如果没有指定则默认为 1。.
ParamString 获取指定的 URL parameter 的值,并移除首尾的空白字符。 如果未指定参数名,则返回默认值。如果没有默认值则值为空字符串。.
ParamUUIDLicenseKey 用于查询 URL parameter(`/xxx/:license_key`)里 `license_key` 参数的值(必须是 UUID 格式)。.
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
QueryLimit 用于查询 URL query parameters(`/?limit=x`)里 `limit` 参数的值。 如果没有指定则默认为 cfg.WebPageSize。.
QueryPage 用于查询 URL query parameters(`/?page=x`)里 `page` 参数的值。 如果没有指定或小于 1 则设置为 1。.
No description provided by the author
QueryString 获取指定的 query 的值,并移除首尾的空白字符。 如果未指定参数名,则返回默认值。如果没有默认值则值为空字符串。.
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