From 544dc60c5a1bc0e546e033ea040ee0f0c699003f Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Wed, 24 Aug 2022 16:38:25 +0100 Subject: [PATCH] Add missing golang tag in code markdown (#13248) --- modules/openapi-generator/src/main/resources/go/README.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/go/README.mustache b/modules/openapi-generator/src/main/resources/go/README.mustache index b00e98e55cb3..f13136a8f35d 100644 --- a/modules/openapi-generator/src/main/resources/go/README.mustache +++ b/modules/openapi-generator/src/main/resources/go/README.mustache @@ -69,7 +69,7 @@ Each operation can use different server URL defined using `OperationServers` map An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. -``` +```golang ctx := context.WithValue(context.Background(), {{packageName}}.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, })