mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
examples/entcpkg: add codegen-hook example (#1356)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user