Skip to content

docs: Go SDK 版本号更新为 go/v1.1.0(beegomw 已发版) - #21

Open
TangJia025 wants to merge 1 commit into
mainfrom
docs/2061-go-tag-v1.1.0
Open

TangJia025 wants to merge 1 commit into
mainfrom
docs/2061-go-tag-v1.1.0

Conversation

@TangJia025

Copy link
Copy Markdown
Contributor

跟进 https://github.com/opensourceways/backlog/issues/2061

middleware/beegomw 已随 #19 合入 main,并打了 go/v1.1.0(annotated tag,指向 612d014)。本 PR 把文档里的版本号与 UT 数量跟上。

为什么是 v1.1.0 而不是 v2

核过 go/v1.0.0..origin/main 的 go/ 全部差异,是纯增量:

go/middleware/beegomw/beegomw.go       | 182 +++   新增包
go/middleware/beegomw/beegomw_test.go  | 260 +++
go/middleware/middleware.go            |   5 +-    只有注释
go/middleware/ginmw/ginmw.go           |   3 +-    只有注释
go/go.mod                              |   4 +     新增 beego 依赖

特别确认了 4894338(中间件公共指标去掉 obs_ 前缀)没有破坏 Go 的 API —— 该提交对 Go 只改了注释,指标名字面量在 go/v1.0.0 时就已是 http_server_requests_total / http_server_request_duration_seconds,前后一致。因此不需要升 v2。

验证

toolchain 侧已确认 tag 生效(GOPROXY=https://goproxy.cn):

$ go list -m -versions github.com/opensourceways/obs-sdk/go
github.com/opensourceways/obs-sdk/go v1.0.0 v1.1.0

另做了使用方冒烟:新建空模块 go get 该版本、import middleware/beegomw,go build 通过,运行时拿到 web.FilterChain。

改动

文件 改动
docs/进度追踪.md go/v1.0.0 → go/v1.1.0
docs/微服务可观测性建设技术设计.md 已发版 go/v1.0.0 → go/v1.1.0;Go UT 数量 31 → 39

README.md / AGENTS.md 里出现的 go/v1.0.0 是 tag 格式示例(说明必须是 go/v1.0.0 而非 go-v1.0.0),不是当前版本,保持不动。

🤖 Generated with Claude Code

AI 使用声明

当前 PR 是否有 AI 参与:

  • 否
  • 是
    1. AI Agent 平台:Claude Code
    2. AI 模型:deepseek-v4-flash
    3. Prompt 上下文:用户问「新增 beegomw 后是否需要新建 go tag」,确认按 go/v1.1.0 发布并同步文档版本号

beegomw(obs-sdk#19)合入后打了 go/v1.1.0,把文档里的版本号与 UT 数量跟上:

- docs/进度追踪.md:go/v1.0.0 → go/v1.1.0
- docs/微服务可观测性建设技术设计.md:已发版 go/v1.0.0 → go/v1.1.0;
  Go 的 UT 数量 31 → 39(新增 beegomw 的 8 个用例)

README.md / AGENTS.md 里出现的 go/v1.0.0 是 tag **格式示例**,不是当前版本,保持不动。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@opensourceways-bot

Copy link
Copy Markdown

Welcome To opensourceways Community

Hey @TangJia025 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: infratructure ,
and any of the maintainers: @GeorgeCao-hw, @TangJia025, @pkking, @zhongjun2 ,
and any of the committers: @GeorgeCao-hw, @TangJia025, @pkking, @zkhzkhz .

@opensourceways-bot

Copy link
Copy Markdown

CLA Signature Pass

TangJia025, thanks for your pull request. All authors of the commits have signed the CLA. 👍

@opensourceways-bot

Copy link
Copy Markdown

Linking Issue Notice

@TangJia025 , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants