Commit Graph

434 Commits

Author SHA1 Message Date
kercylan98
45024f3b9f fix: 修复 timer.Ticker 死锁 2024-04-19 15:10:18 +08:00
kercylan98
7ecb13b7c8 other: 服务器消息组件抽离 2024-04-09 16:25:11 +08:00
kercylan98
e4eee31ede other: 新版 server、logger 完善 2024-04-02 19:22:39 +08:00
kercylan98
ffc3421b29 other: 新版 server 包完善 2024-04-01 12:33:05 +08:00
kercylan98
1408fdcff0 other: reactor 实现 2024-03-31 16:46:09 +08:00
kercylan98
ef1bb321d7 feat: 新版 server 包 websocket 基础实现、actor 模型实现 2024-03-21 19:56:33 +08:00
kercylan98
b2c0bb0da3 feat: 新版 server 包 HTTP 基础实现 2024-03-20 23:48:46 +08:00
kercylan98
e608e9257e feat: 新增 chrono 包,用于替代原本的 timer 及 times 包 2024-03-19 18:05:03 +08:00
kercylan98
92d6c5680d feat: times 包新增 GetWeekdayDateRelativeToNowWithOffset 及 GetWeekdayTimeRelativeToNowWithOffset 函数,用于取代 GetCurrWeekDate 和 GetLastWeekDate 函数 2024-03-18 12:39:26 +08:00
kercylan98
6d8258b153 fix: 修复循环依赖问题 2024-03-12 20:17:44 +08:00
kercylan98
c98d15b0f2 feat: super 包新增 WaitGroup 结构,用法同 sync.WaitGroup,包含一个额外的 Exec 函数,用于便捷的执行异步函数。移除 stack.go 相关的无用代码 2024-03-12 20:08:09 +08:00
kercylan98
d1d5bd40d4 fix: 修复 timer.Ticker 并发问题 2024-03-11 17:25:06 +08:00
kercylan98
17cdad2c6e fix: 移除 modular.go 中不必要的代码,修复 timer.Ticker 释放后 handler 指针污染的问题 2024-03-08 16:49:58 +08:00
kercylan98
f7c37016ce fix: 修复 geometry 包 SimpleCircle.Projection 函数不正确的问题。优化部分注释及添加部分函数 2024-03-04 17:56:36 +08:00
kercylan98
6846c9dfc7 feat: geometry 包新增 SimpleCircle 结构体,用于表示仅由圆心及半径组成的圆形,包含投影、距离等常用函数。优化 geometry 中的计算函数,所有计算入参均会转换为 float64 运算,输出时转换回原有的泛型类型 2024-02-21 16:58:00 +08:00
kercylan98
7fa0e68636 feat: super 包新增 StopWatch 和 StopWatchAndPrintln 函数,用于追踪函数运行时间 2024-02-20 09:28:54 +08:00
kercylan98
40acb567a7 docs: 完善 README.md 2024-02-05 12:11:11 +08:00
kercylan98
a2695f4fcf feat: 完善 stream 包对于 []string 的操作 2024-02-05 11:23:12 +08:00
kercylan98
f30de13c34 Merge remote-tracking branch 'origin/develop' into develop 2024-02-04 12:15:01 +08:00
kercylan98
902dadad5a fix: 修复 times.GetCurrWeekDate 和 times.GetLastWeekDate 在 week 参数与今日 week 相同的情况下,会多获取到一周的问题 2024-02-04 12:14:46 +08:00
kercylan
f54e5fde12 str 包流式操作移到新增的 stream 包,可通过 stream.NewString、stream.NewStrings 开始 2024-02-04 00:11:10 +08:00
kercylan
6a64fea5b2 str 包新增 string 流操作 2024-02-03 00:06:59 +08:00
kercylan98
ad4777a379 feat: timer 包新增 GetCurrWeekDate 和 GetLastWeekDate 函数 2024-01-31 11:46:32 +08:00
kercylan98
4799a8cb73 feat: collection 包新增 MergeSlice 函数,用于将多个同类型对象合并为一个切片 2024-01-30 12:38:38 +08:00
kercylan98
fc14e73801 docs: 完善根目录 README.md,增加项目实践记录内容。生成子目录 README.md 文档 2024-01-24 11:12:34 +08:00
kercylan98
f08f06891c test: super.BitSet 完善测试用例 2024-01-22 14:05:11 +08:00
kercylan98
959abff85f feat: super 包新增 TryReadChannel、TryReadChannelByHandler 函数用于对 channel 尝试写入 2024-01-19 17:15:55 +08:00
kercylan98
756f823ca4 feat: collection 包新增 Equel 命名前缀的用于比较切片和 map 元素是否相同的函数,新增 Loop 命名前缀的用于遍历切片和 map 元素的函数 2024-01-19 14:46:24 +08:00
kercylan98
c4605cc4c3 feat: huge 包 NewInt 函数支持 string、bool、float 类型 2024-01-18 18:51:17 +08:00
kercylan98
9dba7ffe19 feat: collection 包新增 ConvertSliceToBatches、ConvertMapKeysToBatches、ConvertMapValuesToBatches 函数,用于将切片或 map 转换为按特定数量分批的批次切片 2024-01-18 17:16:00 +08:00
kercylan98
36de5934ce fix: 修复 super 包 JSON 解析部分零值不正确的问题 2024-01-16 16:15:51 +08:00
kercylan98
bbf70fab02 test: server 包完善部分测试用例 2024-01-15 17:27:29 +08:00
kercylan98
22449ff5c3 docs: 优化 README.md 可读性 2024-01-15 17:27:02 +08:00
kercylan98
6e6f33899b docs: 优化泛型结构体函数的文档展示 2024-01-15 11:46:08 +08:00
kercylan98
5ea3202732 docs: 完善 collection 包部分文档 2024-01-15 11:26:30 +08:00
kercylan98
cb340da0e5 docs: 优化 README.md 的测试用例描述 2024-01-15 11:15:51 +08:00
kercylan98
580bab2dfc docs: 优化 README.md 的测试用例描述 2024-01-15 11:12:24 +08:00
kercylan98
a026e4cf96 docs: 优化 README.md 包级函数不显示泛型签名的情况 2024-01-15 10:54:27 +08:00
kercylan98
e7e679ea86 docs: 优化 README.md 导航中无法跳转结构体的情况 2024-01-15 10:41:10 +08:00
kercylan98
bd7a3fee6b docs: 优化 README.md 函数签名 2024-01-15 10:37:51 +08:00
kercylan
65c10f2ad0 docs: 优化泛型约束类型文档显示 2024-01-14 19:15:25 +08:00
kercylan
f9d31888ee docs: 优化文档详情部分,优化文档导航包含详情部分的问题 2024-01-14 18:41:52 +08:00
kercylan
b2fdaa2ae6 docs: 优化文档展示,适配部分无目录文档,适配非结构体的类型定义,增加测试用例文档 2024-01-14 18:33:02 +08:00
kercylan
83beeb43ce docs: 优化项目文档 2024-01-14 18:33:01 +08:00
kercylan98
8d0cbed4f4 other: 优化 collection.map 相关函数签名,优化使用体验 2024-01-12 17:14:01 +08:00
kercylan98
c439ef6424 test: 完善 hub.ObjectPool 测试用例 2024-01-12 12:51:49 +08:00
kercylan98
161fbfe4e3 refactor: 迁移 concurrent.Pool 至 hub.ObjectPool,并将 concurrent 包更名为 hub 2024-01-12 12:34:09 +08:00
kercylan98
e28a5a259f refactor: 迁移 concurrent.Slice 至 listings.SyncSlice 2024-01-12 12:29:13 +08:00
kercylan98
e3475c6c07 refactor: 迁移 concurrent.BalanceMap 至 mappings.SyncMap,优化泛型函数签名 2024-01-12 12:13:28 +08:00
kercylan98
e30c5788c1 test: 完善 collection 包测试用例 2024-01-12 11:59:55 +08:00