From 845cf2adba92dc3b646f1e33117c032625ae411a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Thu, 5 Jul 2018 12:52:29 -0700 Subject: [PATCH] Remove timestamp from generated files --- generate.go | 4 ---- locale/translations.go | 1 - sql/sql.go | 1 - template/common.go | 1 - template/views.go | 1 - ui/static/bin.go | 1 - ui/static/css.go | 1 - ui/static/js.go | 1 - 8 files changed, 11 deletions(-) diff --git a/generate.go b/generate.go index 266a9fd6..e983f113 100644 --- a/generate.go +++ b/generate.go @@ -16,7 +16,6 @@ import ( "path/filepath" "strings" "text/template" - "time" "github.com/tdewolff/minify" "github.com/tdewolff/minify/css" @@ -24,7 +23,6 @@ import ( ) const tpl = `// Code generated by go generate; DO NOT EDIT. -// {{ .Timestamp }} package {{ .Package }} @@ -41,7 +39,6 @@ var generatedTpl = template.Must(template.New("").Parse(tpl)) type GeneratedFile struct { Package, Map string - Timestamp time.Time Files map[string]string Checksums map[string]string } @@ -55,7 +52,6 @@ func generateFile(serializer, pkg, mapName, pattern, output string) { generatedFile := &GeneratedFile{ Package: pkg, Map: mapName, - Timestamp: time.Now(), Files: make(map[string]string), Checksums: make(map[string]string), } diff --git a/locale/translations.go b/locale/translations.go index f66b8ecc..00541e2f 100755 --- a/locale/translations.go +++ b/locale/translations.go @@ -1,5 +1,4 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-07-05 12:45:05.564413829 +0200 CEST m=+0.064843885 package locale diff --git a/sql/sql.go b/sql/sql.go index c7967a12..60af4c5b 100644 --- a/sql/sql.go +++ b/sql/sql.go @@ -1,5 +1,4 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-07-04 22:00:22.141197828 -0700 PDT m=+0.003091629 package sql diff --git a/template/common.go b/template/common.go index be128398..925678f8 100644 --- a/template/common.go +++ b/template/common.go @@ -1,5 +1,4 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-07-04 22:00:22.176755806 -0700 PDT m=+0.038649607 package template diff --git a/template/views.go b/template/views.go index c0c031d6..712c87ff 100644 --- a/template/views.go +++ b/template/views.go @@ -1,5 +1,4 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-07-04 22:00:22.166425155 -0700 PDT m=+0.028318956 package template diff --git a/ui/static/bin.go b/ui/static/bin.go index 7a29018a..f60bd172 100644 --- a/ui/static/bin.go +++ b/ui/static/bin.go @@ -1,5 +1,4 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-07-04 22:00:22.158122512 -0700 PDT m=+0.020016313 package static diff --git a/ui/static/css.go b/ui/static/css.go index 01525442..2afcf2d0 100644 --- a/ui/static/css.go +++ b/ui/static/css.go @@ -1,5 +1,4 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-07-04 22:00:22.16263119 -0700 PDT m=+0.024524991 package static diff --git a/ui/static/js.go b/ui/static/js.go index 3fc04c5c..fff6f72b 100644 --- a/ui/static/js.go +++ b/ui/static/js.go @@ -1,5 +1,4 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-07-04 22:00:22.164970025 -0700 PDT m=+0.026863826 package static