Skip to content

Commit

Permalink
Use standard generated code header (#105)
Browse files Browse the repository at this point in the history
Go 1.9 introduced a standard format of generated code header. This
change follows that header format. See
https://golang.org/pkg/cmd/go/internal/generate/
  • Loading branch information
shouichi authored and rodaine committed Sep 28, 2018
1 parent 30da78c commit 379ff5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions templates/go/file.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package golang

const fileTpl = `// Code generated by protoc-gen-validate
const fileTpl = `// Code generated by protoc-gen-validate. DO NOT EDIT.
// source: {{ .InputPath }}
// DO NOT EDIT!!!
package {{ pkg . }}
Expand Down
3 changes: 1 addition & 2 deletions templates/gogo/file.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package gogo

const fileTpl = `// Code generated by protoc-gen-validate
const fileTpl = `// Code generated by protoc-gen-validate. DO NOT EDIT.
// source: {{ .InputPath }}
// DO NOT EDIT!!!
package {{ pkg . }}
Expand Down

0 comments on commit 379ff5f

Please sign in to comment.