mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
17 lines
250 B
Go
17 lines
250 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"fbc/ent/entc/gen"
|
|
"fbc/ent/entc/plugin"
|
|
)
|
|
|
|
// Gen is the required plugin symbol.
|
|
var Gen = plugin.GeneratorFunc(func(graph *gen.Graph) error {
|
|
for _, n := range graph.Nodes {
|
|
fmt.Println(n.Name)
|
|
}
|
|
return nil
|
|
})
|