This website requires JavaScript.
Explore
Help
Sign In
tcjlj
/
OpenFlare
Watch
1
Star
0
Fork
0
You've already forked OpenFlare
mirror of
https://github.com/Rain-kl/OpenFlare.git
synced
2026-09-28 05:46:36 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
2aa0a7076243283db8e749f31d93d165dae26321
OpenFlare
/
internal
T
History
ryan
55c1fcd5f9
chore: format
2026-08-16 21:39:25 +08:00
..
apps
chore: format
2026-08-16 21:39:25 +08:00
buildinfo
refactor(repo): consolidate openflare-server to root and move subprojects to internal/apps
2026-06-19 14:23:29 +08:00
cmd
perfsprint 18→0:strconv.Itoa/FormatInt/FormatUint/FormatBool 替代 fmt.Sprintf、无动词 fmt.Errorf→errors.New、纯字符串拼接。全部语义等价(已核对 diff)。修正 fixer 遗留的 import 问题(引入 goimports 统一整理)。
2026-08-16 17:34:44 +08:00
infra
补齐 131 个 .go 文件的 SPDX license 头(repo 自带 make license 约定,早于约定新增的文件含 2 个生产文件;纯注释插入零行为影响),make license-check 转绿。go mod tidy -diff 确认干净。
2026-08-16 20:09:24 +08:00
integration
/githubrelease
intrange 3→0 + modernize 5→3:for i:=0;i<len/N;i++ → range len/N(8 处);time.Time 字段 omitempty→omitzero(wire 输出一致);SplitSeq;min() 简化。刻意保留 lark.go omitzero(会改变 wire 行为)。
2026-08-16 17:47:09 +08:00
listener
refactor(repo): consolidate openflare-server to root and move subprojects to internal/apps
2026-06-19 14:23:29 +08:00
model
recvcheck 7→1:6 个 GORM 模型 TableName 改为指针接收者(GORM 源码确认 reflect.New 判定 Tabler,兼容;模型单测通过)。MillisecondDuration 刻意保留(encoding/json 要求 Marshal 值/Unmarshal 指针的混合)。
2026-08-16 18:00:45 +08:00
platform
feat(log): disable user access log recording
2026-08-09 10:35:39 +08:00
repository
补齐 131 个 .go 文件的 SPDX license 头(repo 自带 make license 约定,早于约定新增的文件含 2 个生产文件;纯注释插入零行为影响),make license-check 转绿。go mod tidy -diff 确认干净。
2026-08-16 20:09:24 +08:00
router
canonicalheader 8→0 + usestdlibvars 3→0:header key 改为 Go 规范大小写(wire 格式本就如此,纯代码修正)、HTTP 方法常量替代字符串字面量。
2026-08-16 17:38:18 +08:00
shared
测试代码质量 25→0:assert↔require 一致性(fail-fast)、float 精确比较→InDelta、Equal("",x)→Empty、Equal(len)→Len、errors.Is/As→ErrorIs/ErrorAs、JSON 字符串→JSONEq、handler goroutine 内 require→assert(真健壮性修复)、t.Helper()、os.MkdirTemp→t.TempDir()(符合 repo AGENTS 约束)。
2026-08-16 18:12:58 +08:00
testhelper
测试代码质量 25→0:assert↔require 一致性(fail-fast)、float 精确比较→InDelta、Equal("",x)→Empty、Equal(len)→Len、errors.Is/As→ErrorIs/ErrorAs、JSON 字符串→JSONEq、handler goroutine 内 require→assert(真健壮性修复)、t.Helper()、os.MkdirTemp→t.TempDir()(符合 repo AGENTS 约束)。
2026-08-16 18:12:58 +08:00