git-bug/vendor/github.com/99designs/gqlgen/codegen/generate.go
2019-04-09 21:45:24 +02:00

16 lines
332 B
Go

package codegen
import (
"github.com/99designs/gqlgen/codegen/templates"
)
func GenerateCode(data *Data) error {
return templates.Render(templates.Options{
PackageName: data.Config.Exec.Package,
Filename: data.Config.Exec.Filename,
Data: data,
RegionTags: true,
GeneratedHeader: true,
})
}