From 286e5e7317ca39254c82014e55869b71c1cda8c5 Mon Sep 17 00:00:00 2001 From: AI Engineer Date: Sat, 16 May 2026 01:18:57 +0800 Subject: [PATCH] chore: infrastructure alignment and doc sync (by AICoder) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index daa8b18..abfa69c 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ list, _ := cast.ToSlice[int]([]string{"1", "2", "3"}) 6. **基础转换与时间 (直接调用,极致性能)** * `Int`, `Int64`, `Uint`, `Uint64`, `Float`, `Float64`, `String`, `Bool`, `Duration` + * `RealValue(reflect.Value) reflect.Value` —— 递归获取指针或接口下的真实值。 * `ParseTime(any) time.Time` —— 强大的时间解析,支持时间戳、RFC3339、JS 格式、紧凑格式及中文日期。 * `FormatTime(layout, any) string` —— 直观格式化(如 YYYY-MM-DD HH:mm:ss)。 * `AddTime(expr, any) time.Time` —— DSL 时间计算(如 +1Y-2M+3D)。 @@ -89,6 +90,8 @@ list, _ := cast.ToSlice[int]([]string{"1", "2", "3"}) * `SplitArgs(string) []string` —— 命令行参数分割,支持引号与转义。 * `JoinArgs([]string, sep string) string` —— 命令行参数合并,自动处理引号与转义。 * `UniqueAppend(to []string, from ...any) []string` —— 去重追加。 + * `GetLowerName(string) string` | `GetUpperName(string) string` —— 首字母大小写转换工具。 + * `FixUpperCase([]byte, []string)` —— 针对 JSON Key 的特殊大小写修复工具。 8. **时区支持** * `DefaultTimeZone` —— 全局默认时区上下文。