package
4.2.4
Repository: https://github.com/admpub/nging.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BatchAdd 批量添加(常用于批量添加分类) BatchAdd(ctx, `ident,>name`, adder, before, `=`) 可以通过在字段名称前面添加“>”前缀来指定表单字段名称,如果不指定则默认使用第一个作为表单字段名.
No description provided by the author
CaptchaInfo 新验证码信息.
ClearHTML 清除所有HTML标签及其属性,一般用处理文章标题等不含HTML标签的字符串.
No description provided by the author
No description provided by the author
No description provided by the author
Decrypt 数据解密.
DecryptedByRandomSecret 用上次设置的随机密码解密.
DeleteRandomSecret 删除随机密码.
DirSharding 文件夹分组(暂不使用).
Encrypt 数据加密.
Err 获取错误信息.
No description provided by the author
No description provided by the author
No description provided by the author
FloorNumber 楼层号.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenSecret 生成随机密钥.
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
GetLocalIP 获取本机网卡IP.
No description provided by the author
GetNowTime 获取当前时间(同一个context中只获取一次).
No description provided by the author
No description provided by the author
No description provided by the author
HTMLFilter 构建自定义的HTML标签过滤器.
HTTPStatusColor HTTP状态码相应颜色.
IDSharding 按照ID进行分片.
No description provided by the author
No description provided by the author
IsCaptchaErrCode 是否验证码错误码.
IsCaptchaError 用户验证码错误.
No description provided by the author
IsError 是否是错误信息.
No description provided by the author
No description provided by the author
IsMessage 判断err是否为Message.
IsOk 是否是成功信息.
IsUserDisabled 用户是否被禁用.
IsUserNoPerm 用户是否没有操作权限.
IsUserNotFound 用户是否不存在.
IsUserNotLoggedIn 用户是否未登录.
No description provided by the author
LogShow 获取日志内容用于显示.
LookPath 获取二进制可执行文件路径.
No description provided by the author
No description provided by the author
MD5Sharding 按照MD5进行分片.
Message 获取err中的信息接口.
ModTimeCache 缓存文件修改时间.
MonthSharding 按照日期月进行分片.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewOk 创建成功信息.
NewSonyflake 19位.
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
Ok 操作成功.
OkString 获取成功信息.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReadCache 读缓存文件.
No description provided by the author
No description provided by the author
RemoveCache 删除缓存文件.
No description provided by the author
RemoveXSS 清除不安全的HTML标签和属性,一般用于处理文章内容.
ReplaceCharset 替换DDL语句中的字符集.
ReplacePrefix 替换前缀数据.
No description provided by the author
No description provided by the author
No description provided by the author
SendErr 记录错误信息 (SendFail的别名).
SendFail 记录失败信息.
SendOk 记录成功信息.
SetRandomSecret 设置随机密码.
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
VerifyAndSetCaptcha 验证码验证并设置新验证码信息.
VerifyCaptcha 验证码验证.
No description provided by the author
No description provided by the author
No description provided by the author
WriteCache 写缓存文件.
YearSharding 按照日期年进行分片.

# Constants

No description provided by the author
DirShardingNum 文件夹分组基数.
No description provided by the author

# Variables

No description provided by the author
DefaultNopMessage 默认空消息.
ErrBalanceNoEnough 余额不足.
ErrCaptcha 验证码错误.
ErrCaptchaIdMissing 缺少captchaId.
No description provided by the author
No description provided by the author
ErrIgnoreConfigChange 忽略配置文件更改.
ErrInvalidAppID App ID 无效.
No description provided by the author
ErrInvalidSign 无效签名.
ErrInvalidToken 令牌无效.
ErrNext 需要继续向下检查.
ErrOperationFail 操作失败.
ErrOperationTimeout 操作超时.
No description provided by the author
ErrRepeatOperation 重复操作.
ErrRequestFail 提交失败.
ErrRequestTimeout 提交超时.
ErrResponseFormatError 响应格式错误.
ErrUnsupported 不支持.
ErrUserDisabled 用户已被禁用.
ErrUserNoPerm 用户无权限.
ErrUserNotFound 用户不存在.
ErrUserNotLoggedIn 用户未登录.
LogParsers 日志格式解析器.
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
Sorts 获取数据查询时的排序方式.

# Structs

NopMessage 空消息.
Success 成功信息.
No description provided by the author

# Interfaces

Adder interface.
APIKeyGetter API Key.
No description provided by the author
No description provided by the author
No description provided by the author
Messager 信息接口.
No description provided by the author
Successor 成功信息接口.

# Type aliases

Errors 多个错误信息.
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
StatusColor 状态色.