mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +03:00
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:
committed by
Facebook Github Bot
parent
c5259c8528
commit
cef32f1fb4
@@ -1,6 +1,7 @@
|
||||
{{ define "example" }}
|
||||
|
||||
{{ $pkg := base $.Config.Package }}
|
||||
{{ template "header" $pkg }}
|
||||
{{ template "header" $ }}
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
Reference in New Issue
Block a user