Remove timestamps in generated files

This commit is contained in:
Jeff Mitchell committed 2020-05-04 11:04:17 -04:00
1 parent 1f93aa2301
commit 9325a6422d
8 files changed
-20

No files matched your search

-6
View File
@@ -379,7 +379,6 @@ func createUtilFuncs() {
Package string
StructFields string
}{
Timestamp: time.Now(),
Name: inputStruct.outName,
Package: inputStruct.outPkg,
StructFields: inputStruct.structFields,
@@ -393,7 +392,6 @@ func createUtilFuncs() {
ParentName string
DetailName string
}{
Timestamp: time.Now(),
Package: inputStruct.outPkg,
StructFields: inputStruct.structFields,
ParentName: inputStruct.parentName,
@@ -415,8 +413,6 @@ func createUtilFuncs() {
}
var utilFuncsTemplate = template.Must(template.New("").Parse(`// Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at
// {{ .Timestamp }}
package {{ .Package }}
import (
@@ -452,8 +448,6 @@ func (s {{ .Name }}) MarshalJSON() ([]byte, error) {
// TODO: Figure out the right way to write out the specific fields
var detailTemplate = template.Must(template.New("").Parse(`// Code generated by go generate; DO NOT EDIT.
// This file was generated by robots at
// {{ .Timestamp }}
package {{ .Package }}
import (