mirror of
https://github.com/ent/ent.git
synced 2026-04-30 06:30: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:
@@ -67,7 +67,7 @@ Add a `generate.go` file to your project under `<project>/ent`:
|
||||
```go
|
||||
package ent
|
||||
|
||||
//go:generate go run entgo.io/ent/cmd/ent generate ./schema
|
||||
//go:generate go run -mod=mod entgo.io/ent/cmd/ent generate ./schema
|
||||
```
|
||||
|
||||
Finally, you can run `go generate ./ent` from the root directory of your project
|
||||
|
||||
Reference in New Issue
Block a user