Skip to content

Commit

Permalink
chore: remove goproxy.cn in english documents
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Jan 27, 2025
1 parent 26e4ba3 commit f4c5852
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 41 deletions.
6 changes: 3 additions & 3 deletions i18n/en/docusaurus-plugin-content-docs/current/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Don't note **star** : capping_hands:
Install under project directory:

```shell
GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero
go get -u github.com/zeromicro/go-zero
```

## 5. Quick Start
Expand All @@ -100,13 +100,13 @@ GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro
`goctl` read `go control`, don't read `go C-T-L`.`goctl` means not being controlled by code but to control it.The `go` does not mean `golang`.

```shell
GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero/tools/goctl
go get -u github.com/zeromicro/go-zero/tools/goctl
```

If using version go1.16, you can install the `go install` command

```shell
GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest
go install github.com/zeromicro/go-zero/tools/goctl@latest
```

Make sure goctl is executable
Expand Down
25 changes: 0 additions & 25 deletions i18n/en/docusaurus-plugin-content-docs/current/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,31 +132,6 @@ $ go version
</TabItem>
</Tabs>

## 3. Configuration

### 3.1 GO111MODULE ON

After go 1.11, it is recommended that the `GO111MODULE` value be set to `on`in order to avoid unnecessary errors in the follow-up pull dependency.

```bash
$ go env -w GO111MODULE=on
```

### 3.2 Configure Proxy

```bash
$ go env -w GOPROXY=https://goproxy.cn,direct
```

### 3.3 View configuration

```bash
$ go env GO111MODULE
on
$ go env GOPROXY
https://goproxy.cn,direct
```

## References

- <a href="https://zh.wikipedia.org/zh-cn/Go" tagret="_blank">Wikipedia - Go</a>
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,3 @@ $ mkdir <project name> && cd <project name> # project name is specific value
$ go mod init <module name> # module name is specific value
$ github.com/zeromicro/go-zero@latest
```

## FAQ

### 1. After GOROXY is set, dependencies or pull?

Confirm whether `GO111MODULE` is on

```shell
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct
```
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ FROM golang:alpine AS builder
LABEL stage=gobuilder
ENV CGO_ENABLED 0
ENV GOPROXY https://goproxy.cn,direct
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk update --no-cache && apk add --no-cache tzdata
Expand Down

0 comments on commit f4c5852

Please sign in to comment.