Files
ent/entc/gen/template/header.tmpl
Ariel Mashraki 7597f07912 entc: add option to use entc as package
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/72

Reviewed By: alexsn

Differential Revision: D17783580

fbshipit-source-id: 597f124a28415fef66b0b16811ad2acac8df631d
2019-10-07 07:06:32 -07:00

15 lines
436 B
Cheetah

{{/*
Copyright 2019-present Facebook Inc. All rights reserved.
This source code is licensed under the Apache 2.0 license found
in the LICENSE file in the root directory of this source tree.
*/}}
{{ define "header" }}
{{ with $.Header }}{{ . }}{{ else }}// Code generated by entc, DO NOT EDIT.{{ end }}
{{ $pkg := base $.Config.Package }}
{{ if hasField $ "Scope" }}
{{ $pkg = $.Scope.Package }}
{{ end }}
package {{ $pkg }}
{{ end }}