Remove timestamp from generated files
This commit is contained in:
parent
7ed8401088
commit
845cf2adba
8 changed files with 0 additions and 11 deletions
|
@ -16,7 +16,6 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/tdewolff/minify"
|
"github.com/tdewolff/minify"
|
||||||
"github.com/tdewolff/minify/css"
|
"github.com/tdewolff/minify/css"
|
||||||
|
@ -24,7 +23,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const tpl = `// Code generated by go generate; DO NOT EDIT.
|
const tpl = `// Code generated by go generate; DO NOT EDIT.
|
||||||
// {{ .Timestamp }}
|
|
||||||
|
|
||||||
package {{ .Package }}
|
package {{ .Package }}
|
||||||
|
|
||||||
|
@ -41,7 +39,6 @@ var generatedTpl = template.Must(template.New("").Parse(tpl))
|
||||||
|
|
||||||
type GeneratedFile struct {
|
type GeneratedFile struct {
|
||||||
Package, Map string
|
Package, Map string
|
||||||
Timestamp time.Time
|
|
||||||
Files map[string]string
|
Files map[string]string
|
||||||
Checksums map[string]string
|
Checksums map[string]string
|
||||||
}
|
}
|
||||||
|
@ -55,7 +52,6 @@ func generateFile(serializer, pkg, mapName, pattern, output string) {
|
||||||
generatedFile := &GeneratedFile{
|
generatedFile := &GeneratedFile{
|
||||||
Package: pkg,
|
Package: pkg,
|
||||||
Map: mapName,
|
Map: mapName,
|
||||||
Timestamp: time.Now(),
|
|
||||||
Files: make(map[string]string),
|
Files: make(map[string]string),
|
||||||
Checksums: make(map[string]string),
|
Checksums: make(map[string]string),
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Code generated by go generate; DO NOT EDIT.
|
// Code generated by go generate; DO NOT EDIT.
|
||||||
// 2018-07-05 12:45:05.564413829 +0200 CEST m=+0.064843885
|
|
||||||
|
|
||||||
package locale
|
package locale
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Code generated by go generate; DO NOT EDIT.
|
// Code generated by go generate; DO NOT EDIT.
|
||||||
// 2018-07-04 22:00:22.141197828 -0700 PDT m=+0.003091629
|
|
||||||
|
|
||||||
package sql
|
package sql
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Code generated by go generate; DO NOT EDIT.
|
// Code generated by go generate; DO NOT EDIT.
|
||||||
// 2018-07-04 22:00:22.176755806 -0700 PDT m=+0.038649607
|
|
||||||
|
|
||||||
package template
|
package template
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Code generated by go generate; DO NOT EDIT.
|
// Code generated by go generate; DO NOT EDIT.
|
||||||
// 2018-07-04 22:00:22.166425155 -0700 PDT m=+0.028318956
|
|
||||||
|
|
||||||
package template
|
package template
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Code generated by go generate; DO NOT EDIT.
|
// Code generated by go generate; DO NOT EDIT.
|
||||||
// 2018-07-04 22:00:22.158122512 -0700 PDT m=+0.020016313
|
|
||||||
|
|
||||||
package static
|
package static
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Code generated by go generate; DO NOT EDIT.
|
// Code generated by go generate; DO NOT EDIT.
|
||||||
// 2018-07-04 22:00:22.16263119 -0700 PDT m=+0.024524991
|
|
||||||
|
|
||||||
package static
|
package static
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// Code generated by go generate; DO NOT EDIT.
|
// Code generated by go generate; DO NOT EDIT.
|
||||||
// 2018-07-04 22:00:22.164970025 -0700 PDT m=+0.026863826
|
|
||||||
|
|
||||||
package static
|
package static
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue