chore(module): 更新仓库地址及模块导入路径
Verify / verify (push) Canceled after 0s
Verify / verify (pull_request) Canceled after 0s

This commit is contained in:
zhangdeman committed 2026-11-27 22:58:26 -08:00
1 parent 44e21e1322
commit 52205b42c8
39 files changed
+81 -81

No files matched your search

+3 -3
View File
@@ -4,12 +4,12 @@
## 1. 安装与版本
源码仓库:[github/ginframework](https://git.zhangdeman.cn/github/ginframework)。Go module 与源码地址一致:`git.zhangdeman.cn/github/ginframework`。
源码仓库:[zhangdeman/ginframework](https://git.zhangdeman.cn/zhangdeman/ginframework)。仓库由 `github/ginframework` 迁移至 `zhangdeman/ginframework`,已有消费项目需同步替换旧 module 依赖及全部导入路径;本库不提供旧路径兼容层。Go module 与源码地址一致:`git.zhangdeman.cn/zhangdeman/ginframework`。
当前需要 Go 1.27.0。库尚未发布版本 tag;首次接入使用初始开发分支,Go 会将分支解析为固定伪版本写入消费项目的 go.mod:
```sh
go get git.zhangdeman.cn/github/ginframework@codex/initial-framework
go get git.zhangdeman.cn/zhangdeman/ginframework@codex/initial-framework
go mod tidy
```
@@ -73,7 +73,7 @@ func (*Example) Ping(ctx *gin.Context, form *PingForm) (*PingOutput, error) {
}
```
其中 `framework` 是 `git.zhangdeman.cn/github/ginframework/http` 的导入别名,`gin` 是 `github.com/gin-gonic/gin`。启动函数中装配:
其中 `framework` 是 `git.zhangdeman.cn/zhangdeman/ginframework/http` 的导入别名,`gin` 是 `github.com/gin-gonic/gin`。启动函数中装配:
```go
server, err := framework.NewServer(framework.Config{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.