mirror of
https://github.com/ent/ent.git
synced 2026-05-02 15:40:55 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user