changed code to use packageVersion instead of version

This commit is contained in:
Guo Huang 2016-04-13 21:12:02 -07:00
parent b02a88f0eb
commit a11a4541db

View File

@ -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}}",
}
}