From a11a4541db63de086afe30a0508fdfed3f9da99f Mon Sep 17 00:00:00 2001 From: Guo Huang Date: Wed, 13 Apr 2016 21:12:02 -0700 Subject: [PATCH] changed code to use packageVersion instead of version --- .../src/main/resources/go/configuration.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/go/configuration.mustache b/modules/swagger-codegen/src/main/resources/go/configuration.mustache index 700755f883b..301f46d8fd4 100644 --- a/modules/swagger-codegen/src/main/resources/go/configuration.mustache +++ b/modules/swagger-codegen/src/main/resources/go/configuration.mustache @@ -29,7 +29,7 @@ func NewConfiguration() *Configuration { DefaultHeader: make(map[string]string), ApiKey: make(map[string]string), ApiKeyPrefix: make(map[string]string), - UserAgent: "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{{version}}}/go{{/httpUserAgent}}", + UserAgent: "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{{packageVersion}}}/go{{/httpUserAgent}}", } }