package main import ( "log" "entgo.io/ent/entc" "entgo.io/ent/entc/gen" ) func main() { log.Println("ersteller start") // Parse our custom pagination template (per-entity Query methods). paginationPath := "schema/ent/pagination_query.tmpl" //paginationTmpl := gen.MustParse(gen.NewTemplate("pagination_query"). // ParseFiles(paginationPath)) must(entc.Generate( "./schema/ent/example/ent/schema", &gen.Config{}, entc.TemplateFiles(paginationPath), )) } func must(err error) { if err != nil { log.Fatal(err) } }