Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions content/en/docs/hertz/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ For more information on how to use hz, please refer to: [hz](/zh/docs/hertz/tuto

```bash
go mod init # If your codes are not placed under `GOPATH`, you can skip `go mod init`.

# Since in this example we use .thrift as IDL, make sure the github.com/apache/thrift version in go.mod is v0.13.0
go mod edit -replace github.com/apache/thrift=github.com/apache/[email protected]

# Tidy & get dependencies
go mod tidy
```

Expand Down
4 changes: 4 additions & 0 deletions content/zh/docs/hertz/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ hz 是 Hertz 框架提供的一个用于生成代码的命令行工具,可以

```bash
go mod init # 当前目录不在 GOPATH 下不需要 `go mod init` 这一步

# 由于本示例使用 .thrift 作为 IDL,请确保 go.mod 中的 github.com/apache/thrift 版本为 v0.13.0
go mod edit -replace github.com/apache/thrift=github.com/apache/[email protected]

go mod tidy
```

Expand Down