We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ed9f51 commit 5053873Copy full SHA for 5053873
internal/cmd/generate/commands/gensource/generator.go
@@ -72,7 +72,10 @@ func (g *Generator) w(s string) {
72
}
73
74
func (g *Generator) genHeader() {
75
- g.w("// Code generated")
+ g.w(`// Licensed to Elasticsearch B.V under one or more agreements.
76
+// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
77
+// See the LICENSE file in the project root for more information.` + "\n")
78
+ g.w("//\n// Code generated")
79
if EsVersion != "" {
80
g.w(fmt.Sprintf(" from specification version %s", EsVersion))
81
0 commit comments