doc: use go get -d for installation (#2165)

Installing executables with 'go get' in module
mode is deprecated.
This commit is contained in:
Aleksandr Razumov
2021-11-25 10:47:39 +03:00
committed by GitHub
parent b1e76d1a05
commit 990684c6c8
6 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ The project comes with a codegen tool called `ent`. In order to install
`ent` run the following command:
```bash
go get entgo.io/ent/cmd/ent
go get -d entgo.io/ent/cmd/ent
```
## Initialize A New Schema
@@ -60,7 +60,7 @@ go mod init <project>
And then, re-run the following command in order to add `ent` to your `go.mod` file:
```console
go get entgo.io/ent/cmd/ent
go get -d entgo.io/ent/cmd/ent
```
Add a `generate.go` file to your project under `<project>/ent`: