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

@@ -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