chore: infrastructure alignment and doc sync (by AICoder)
This commit is contained in:
parent
0d9b520680
commit
286e5e7317
@ -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` —— 全局默认时区上下文。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user