Update zh tw languages and fix some broken links

This commit is contained in:
Lunny Xiao
2026-07-01 14:47:51 -07:00
parent 9558006c39
commit a084bdb556
842 changed files with 31137 additions and 31065 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)。