From 930756a76a563adb0d776bdc8a2c1a2a092fbc24 Mon Sep 17 00:00:00 2001 From: Guo Huang Date: Tue, 12 Apr 2016 09:21:08 -0700 Subject: [PATCH] added missing ")" for api key --- modules/swagger-codegen/src/main/resources/go/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/go/api.mustache b/modules/swagger-codegen/src/main/resources/go/api.mustache index cb3552acbfe1..7ed2bebbc87a 100644 --- a/modules/swagger-codegen/src/main/resources/go/api.mustache +++ b/modules/swagger-codegen/src/main/resources/go/api.mustache @@ -46,7 +46,7 @@ func (a {{classname}}) {{nickname}} ({{#allParams}}{{paramName}} {{{dataType}}}{ {{#authMethods}}// authentication ({{name}}) required {{#isApiKey}}{{#isKeyInHeader}} // set key with prefix in header - _sling.Set("{{keyParamName}}", a.Configuration.GetApiKeyWithPrefix("{{keyParamName}}") + _sling.Set("{{keyParamName}}", a.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")) {{/isKeyInHeader}}{{#isKeyInQuery}} // set key with prefix in querystring {{#hasKeyParamName}} type KeyQueryParams struct {