service.xpcool.com/common/tools/doc.go
夏犀麟 8d5f2c65ae feat(common): 新增公共模块 common/tools 及项目上下文记忆体系
- common/tools 工具模块,10 个子功能:md5/cryptox/uuid/random/timex/convertx/strx/slicex/ip/filex(薄封装 GoFrame 内置组件)
- AGENTS.md 项目智能体说明书(架构、规范、命令、记忆体系索引)
- docs/change-log/2026-08-24.md 本次请求与变更记录
- .gitignore 排除 .workbuddy/;PROJECT_STRUCTURE.md 补充目录树
2026-08-24 17:18:10 +08:00

25 lines
1.0 KiB
Go

// Package tools is the shared utility toolbox of the project.
//
// Every sub-package is a thin, documented wrapper around GoFrame built-in
// components (gmd5, gaes, gdes, guid, grand, gtime, gconv, gstr, gfile, ...),
// so it stays small and consistent with the framework.
//
// Layout:
//
// common/tools/md5 MD5 digest helpers
// common/tools/cryptox AES/DES encryption with base64 output
// common/tools/uuid unique ID generation
// common/tools/random random numbers and strings
// common/tools/timex time formatting and computation
// common/tools/convertx type conversion with default fallback
// common/tools/strx string / naming / masking helpers
// common/tools/slicex generic slice utilities
// common/tools/ip IP address helpers
// common/tools/filex file system helpers
//
// Rules:
// - Never depend on internal/ — this module must stay self-contained.
// - Prefer reusing GoFrame built-in components over re-implementing.
// - Keep each helper small and add a Chinese doc comment.
package tools