feat(stringx): 自 go-hua/common 迁入字符串/切片/拼音工具并独立成包

- common 的 string.go/array.go/pinyin.go 拆为 stringx 包(含随机串、GUID、
  通配符匹配、校验规则、链式缓冲、驼峰转下划线、切片删元素、拼音首字母)
- 附单元测试与 examples/stringx 可运行例程、包 README
- go.mod 新增直接依赖 mozillazg/go-pinyin(go-hua 同版本锁 v0.20.0→实际解析 v0.21.0)
This commit is contained in:
2026-09-20 12:20:28 +08:00
parent 1d0120d2c2
commit d13de8f3fa
8 changed files with 524 additions and 1 deletions
+2 -1
View File
@@ -10,7 +10,9 @@ require (
github.com/gorilla/websocket v1.5.3
github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
github.com/mattn/go-colorable v0.1.15
github.com/mozillazg/go-pinyin v0.21.0
github.com/sirupsen/logrus v1.10.2
golang.org/x/text v0.41.0
gorm.io/gorm v1.25.12
)
@@ -46,6 +48,5 @@ require (
golang.org/x/crypto v0.55.0 // indirect
golang.org/x/net v0.57.0 // indirect
golang.org/x/sys v0.47.0 // indirect
golang.org/x/text v0.41.0 // indirect
google.golang.org/protobuf v1.36.10 // indirect
)