diff options
| author | Christoph Blecker <admin@toph.ca> | 2017-06-22 09:54:27 -0700 |
|---|---|---|
| committer | Christoph Blecker <admin@toph.ca> | 2017-06-22 09:55:00 -0700 |
| commit | 91d1bd408e75761bd51affe7bddb35c8635a53fd (patch) | |
| tree | 1b92d601325edce93b38c569d52f8a5ae9489354 /generator/app.go | |
| parent | 95e1d4b61225091c80cff2fc3084c4f67f33e58b (diff) | |
Remove timestamp from sig file generation
Diffstat (limited to 'generator/app.go')
| -rw-r--r-- | generator/app.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/generator/app.go b/generator/app.go index b9d92942..6826af46 100644 --- a/generator/app.go +++ b/generator/app.go @@ -25,7 +25,6 @@ import ( "sort" "strings" "text/template" - "time" "gopkg.in/yaml.v2" ) @@ -42,7 +41,6 @@ var ( githubTeamNames = []string{"misc", "test-failures", "bugs", "feature-requests", "proposals", "pr-reviews", "api-reviews"} beginMarker = "<!-- BEGIN CUSTOM CONTENT -->" endMarker = "<!-- END CUSTOM CONTENT -->" - lastGeneratedPrefix = "Last generated: " ) type Lead struct { @@ -204,9 +202,6 @@ func writeTemplate(templatePath, outputPath string, data interface{}) error { // custom content block writeCustomContentBlock(f, content) - // last generated - writeLastGenerated(f) - fmt.Printf("Generated %s\n", outputPath) return nil } @@ -218,11 +213,6 @@ func writeCustomContentBlock(f *os.File, content string) { } } -func writeLastGenerated(f *os.File) { - lastGenerated := fmt.Sprintf("\n%s %s", lastGeneratedPrefix, time.Now().Format("Mon Jan 2 2006 15:04:05")) - f.Write([]byte(lastGenerated)) -} - func createReadmeFiles(ctx Context) error { var selectedSig *string if sig, ok := os.LookupEnv("SIG"); ok { |
