cmd/ent: fix //go:generate code generation to match go1.16 (#1300)

* doc: fix github link

* doc: fix Link entgo.io -> github.com/ent

* 🎉 first commit

* update go generate style

* doc: update go get to go install

* doc: update versioning with go install

* restore all

* change generate.go content

* add -mod=mod option

* add -mod=mod option
This commit is contained in:
森 優太
2021-03-10 05:00:33 +09:00
committed by GitHub
parent 8e42041d4a
commit e52439c5be
28 changed files with 28 additions and 28 deletions

View File

@@ -68,7 +68,7 @@ In order to enable the privacy option in your code generation, enable the `priva
```go
package ent
//go:generate go run entgo.io/ent/cmd/ent generate --feature privacy ./schema
//go:generate go run -mod=mod entgo.io/ent/cmd/ent generate --feature privacy ./schema
```
It is recommended to add the [`schema/snapshot`](features.md#auto-solve-merge-conflicts) feature-flag along with the