20 lines
262 B
Go
20 lines
262 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"entgo.io/ent/entc"
|
|
"entgo.io/ent/entc/gen"
|
|
)
|
|
|
|
func main() {
|
|
log.Println("ersteller start")
|
|
must(entc.Generate("./schema/ent/example/ent/schema", &gen.Config{}))
|
|
}
|
|
|
|
func must(err error) {
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|