github.com/consensys/gnark-crypto@v0.14.0/internal/generator/sumcheck/generate.go (about) 1 package sumcheck 2 3 import ( 4 "github.com/consensys/bavard" 5 "github.com/consensys/gnark-crypto/internal/generator/config" 6 "path/filepath" 7 ) 8 9 func Generate(conf config.FieldDependency, baseDir string, bgen *bavard.BatchGenerator) error { 10 entries := []bavard.Entry{ 11 {File: filepath.Join(baseDir, "sumcheck.go"), Templates: []string{"sumcheck.go.tmpl"}}, 12 {File: filepath.Join(baseDir, "sumcheck_test.go"), Templates: []string{"sumcheck.test.go.tmpl"}}, 13 } 14 return bgen.Generate(conf, "sumcheck", "./sumcheck/template/", entries...) 15 }