Skip to content

0.0.2

Choose a tag to compare

@baagod baagod released this 03 Feb 09:05
· 6 commits to main since this release

refactor(aeon): 重构核心方法并优化性能

  1. API 变更:
  • Near 函数重构为 Time 方法 t.Near(...),提升调用直观性。
  • Until 函数重构为 Time 方法 t.Until(),统一 API 风格。
  1. 逻辑优化: 优化 Maxmin 内部比较逻辑,减少冗余计算。
  2. 测试增强: 在 aeon_test.go 中补充 NearMaxmin 的全场景测试用例,覆盖边界条件。

BREAKING CHANGE: NearUntil 不再作为独立函数提供,请改为使用 Time 实例方法调用。