examples/entcpkg: add codegen-hook example (#1356)

This commit is contained in:
Ariel Mashraki
2021-03-19 12:29:51 +02:00
committed by GitHub
parent 4e60827cc0
commit aee6785cba
13 changed files with 717 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ func main() {
```go
package ent
//go:generate go run entc.go
//go:generate go run -mod=mod entc.go
```
Note that `ent/entc.go` is ignored using a build tag, and it's executed by the `go generate` command