[Go] #3084: remove timestamps from go server (#5218)

* Issue #3084: add hideGenerationTimestamp option to Go server generator.

* Issue #3084: use hideGenerationTimestamp in go server sample script.

* Update Go server samples.
This commit is contained in:
Paŭlo Ebermann
2017-03-27 05:47:15 +02:00
committed by wing328
parent b37a7c81b0
commit f0b9c2b761
5 changed files with 7 additions and 5 deletions

View File

@@ -126,6 +126,9 @@ public class GoServerCodegen extends DefaultCodegen implements CodegenConfig {
cliOptions.clear();
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_NAME, "Go package name (convention: lowercase).")
.defaultValue("swagger"));
cliOptions.add(new CliOption(CodegenConstants.HIDE_GENERATION_TIMESTAMP, "hides the timestamp when files were generated")
.defaultValue(Boolean.TRUE.toString()));
/*
* Additional Properties. These values can be passed to the templates and
* are available in models, apis, and supporting files