We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b91f94 commit 9bab746Copy full SHA for 9bab746
src/SDK/Language/Go.php
@@ -266,7 +266,7 @@ public function getParamExample(array $param): string
266
break;
267
case self::TYPE_OBJECT:
268
$output .= ($example === '{}')
269
- ? '{map[string]interface{}{}}'
+ ? 'map[string]interface{}{}'
270
: (($formatted = json_encode(json_decode($example, true), JSON_PRETTY_PRINT))
271
? 'map[string]interface{}' . preg_replace('/\n/', "\n ", $formatted)
272
: 'map[string]interface{}' . $example);
0 commit comments