3
0

allow empty structs

This commit is contained in:
Tit Petric
2018-07-01 01:45:06 +02:00
parent 7c3c6a5661
commit 1bb067b7ba
+1 -1
View File
@@ -29,7 +29,7 @@ usort($apis, function($a, $b) {
foreach (array("structs", "handlers", "interfaces", "request", "") as $type) {
foreach ($apis as $api) {
if (!empty($api['struct'])) {
if (is_array($api['struct'])) {
$name = ucfirst($api['interface']);
$filename = str_replace("..", ".", strtolower($name) . "." . $type . ".go");