Update zh tw languages and fix some broken links (#455)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <2021+silverwind@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/455
Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com>
This commit is contained in:
Lunny Xiao
2026-07-09 23:41:46 +00:00
parent c0f8a04185
commit 965c269495
652 changed files with 30864 additions and 30792 deletions

View File

@@ -6,13 +6,13 @@ sidebar_position: 45
# Go 套件註冊表
為您的用戶或組織發布 Go 套件。
為您的使用者或組織發布 Go 套件。
## 發布套件
要發布 Go 套件,請執行 HTTP `PUT` 操作,請求體中包含套件內容。
如果已經存在同名同版本的套件,您不能發布該套件。您必須先刪除現有的套件。
套件必須遵循[結構](https://go.dev/ref/mod#zip-files)。
套件必須遵循[結構](https://go.dev/ref/mod#zip-files)。
```
PUT https://gitea.example.com/api/packages/{owner}/go/upload
@@ -22,7 +22,7 @@ PUT https://gitea.example.com/api/packages/{owner}/go/upload
| ------- | -------------- |
| `owner` | 套件的擁有者。 |
要認證到套件註冊表,您需要提供[定義 HTTP 標頭或使用 HTTP 基本認證](development/api-usage.md#authentication)
要認證到套件註冊表,您需要提供[ HTTP 標頭或使用 HTTP 基本認證](development/api-usage.md#認證)
```shell
curl --user your_username:your_password_or_token \
@@ -30,11 +30,11 @@ curl --user your_username:your_password_or_token \
https://gitea.example.com/api/packages/testuser/go/upload
```
如果您使用 2FA 或 OAuth請使用 [個人訪問令牌](development/api-usage.md#authentication) 代替密碼。
如果您使用 2FA 或 OAuth請使用 [個人存取權杖](development/api-usage.md#認證) 代替密碼。
如果已經存在同名同版本的套件,您不能發布該套件。您必須先刪除現有的套件。
器響應以下 HTTP 狀態碼。
服器響應以下 HTTP 狀態碼。
| HTTP 狀態碼 | 含義 |
| ----------------- | -------------------------- |
@@ -63,4 +63,4 @@ GOPROXY=https://gitea.example.com/api/packages/{owner}/go go install {package_na
如果套件的擁有者是私有的,您需要[提供憑證](https://go.dev/ref/mod#private-module-proxy-auth)。
有關 `GOPROXY` 環境變量以及如何防止數據洩漏的更多信息,請參閱[](https://go.dev/ref/mod#private-modules)。
有關 `GOPROXY` 環境變量以及如何防止資料洩漏的更多資訊,請參閱[](https://go.dev/ref/mod#private-modules)。