doc/md: add -mod=mod to 'go run' commands in documentation (#2881)

https://go.dev/ref/mod#build-commands is the documentation for the -mod flag. It seems that basically -mod=mod is never harmful in ent's case, all it does is tell the go command that it can add ent to the go.mod file if it's not already present
This commit is contained in:
Bill Mill
2022-08-23 14:15:30 -04:00
committed by GitHub
parent 4467021c6c
commit f3b6dd9d7e
6 changed files with 9 additions and 18 deletions

View File

@@ -29,7 +29,7 @@ go get -d entgo.io/ent/cmd/ent
```
```console
go run entgo.io/ent/cmd/ent init Todo
go run -mod=mod entgo.io/ent/cmd/ent init Todo
```
After installing Ent and running `ent init`, your project directory should look like this: