mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-16 11:00:42 +03:00
16 lines
332 B
Go
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,
|
|
})
|
|
}
|