mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
Initial commit
fbshipit-source-id: c79a38536e3c128dce1b2948615b72ec9779ed22
This commit is contained in:
17
entc/plugin/testdata/valid/valid.go
vendored
Normal file
17
entc/plugin/testdata/valid/valid.go
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fbc/ent/entc/gen"
|
||||
)
|
||||
|
||||
// Generator implements the plugin.Generator interface.
|
||||
type Generator struct{}
|
||||
|
||||
// Gen implementation.
|
||||
func (Generator) Gen(*gen.Graph) error {
|
||||
// logic goes here.
|
||||
return nil
|
||||
}
|
||||
|
||||
// Gen is the required plugin symbol.
|
||||
var Gen = Generator{}
|
||||
Reference in New Issue
Block a user