aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/github.com/99designs/gqlgen/codegen/generate.go
blob: eafa3f87434573878137b46652a0a057ca7e2c6a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                           
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,
	})
}