service.xpcool.com/common/tools/doc.go
夏犀麟 4b3c00270f
Some checks failed
Build and Deploy (service.xpcool.com) / build-and-deploy (push) Failing after 31s
feat(i18n): 中文化校验提示与服务层错误信息
将 api 层校验规则提示语、service 层 gerror.Wrap 与 response.Error
错误信息、panic 未注册提示统一改为中文,并同步中文化 cmd 路由注释
与变更记录。仅涉及注释、文档与字符串改动,无业务逻辑变更。
2026-09-13 23:22:46 +08:00

25 lines
997 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package tools 是项目的公共工具集。
//
// 每个子包都是对 GoFrame 内置组件的薄封装,
// gmd5、gaes、gdes、guid、grand、gtime、gconv、gstr、gfile 等),
// 保持小巧且与框架风格一致。
//
// 结构:
//
// common/tools/md5 MD5 摘要工具
// common/tools/cryptox AES/DES 加解密base64 输出)
// common/tools/uuid 唯一 ID 生成
// common/tools/random 随机数与随机字符串
// common/tools/timex 时间格式化与计算
// common/tools/convertx 类型转换(带默认值兜底)
// common/tools/strx 字符串 / 命名 / 脱敏工具
// common/tools/slicex 泛型切片工具
// common/tools/ip IP 地址工具
// common/tools/filex 文件系统工具
//
// 规则:
// - 禁止依赖 internal/ —— 本模块必须保持自包含。
// - 优先复用 GoFrame 内置组件,避免重复造轮子。
// - 每个工具保持小巧,并补充中文文档注释。
package tools