1.5 KiB
1.5 KiB
CHANGELOG - go/service
v1.0.2 (2026-05-09)
Changed
- Infrastructure Alignment:
go.mod升级go/config至v1.0.7,go/http至v1.0.10。 - IO Security: 移除所有业务逻辑中的原生
os调用,强制使用go/file。 - Virtualization:
Static,SendFile,UploadFile.Save全面支持内存文件系统,提升测试与高频读写性能。 - Performance: 优化了
static.go的 304 检查逻辑,BenchmarkRouting性能提升至 ~2984 ns/op。
v1.0.1 (2026-05-08)
Added
- 集成
apigo.cc/go/log并实现完整的Request日志记录,支持NoLog200选项。 - 集成
apigo.cc/go/timer用于高精度请求耗时统计。 - 在
service.go中添加GetInjectT泛型函数,提升依赖注入体验。 Response结构体新增body捕获(仅在非 200 状态下且小于 4KB 时捕获),用于错误日志记录。
Changed
- Infrastructure Alignment:
go.mod补全所有基础设施依赖,并添加replace指令对齐本地版本。 - Naming Alignment: 修复
parmsNum为paramsNum;移除私有函数_verifyValue的下划线前缀。 - Performance: 优化了
ServeHTTP的执行链路,BenchmarkRouting性能提升至 ~3047 ns/op。 - Modernization:
parseRequestArgs中将json.Unmarshal替换为cast.UnmarshalJSON。 - Robustness:
UploadFile.Save采用file.EnsureParentDir保证 IO 安全。
v1.0.0 (2026-05-01)
- 初始版本发布,支持 Host 隔离路由与自动参数注入。