entc: add option to override codegen header

Summary:
Set the standard header ("Code generated by entc, DO NOT EDIT.") as default, and override it using option in graph.

No changes to graph except the `generate.go` file.

Reviewed By: idoshveki

Differential Revision: D16642348

fbshipit-source-id: d9fd1d2046e2fd96acbb100ef061fda75d99ce52
This commit is contained in:
Ariel Mashraki
2019-08-04 05:09:21 -07:00
committed by Facebook Github Bot
parent c5259c8528
commit cef32f1fb4
20 changed files with 103 additions and 64 deletions

View File

@@ -1,6 +1,7 @@
{{ define "example" }}
{{ $pkg := base $.Config.Package }}
{{ template "header" $pkg }}
{{ template "header" $ }}
import (
"log"