golang target changed

This commit is contained in:
Pavel Merzlyakov 2022-08-22 15:04:57 +03:00
parent bf14f57177
commit a37da318fc
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class mtgGoCodegen extends mtgCodegen
$result = mtg_fill_template($tpl, $repl);
if($struct->hasToken('POD') && $struct->hasToken("id") && $struct->hasToken("table") && $struct->hasToken("owner"))
if($struct->hasToken("id") && $struct->hasToken("table") && $struct->hasToken("owner"))
$result .= "\n" . str_replace(array_keys($repl), array_values($repl), $templater->tpl_collection_item());
return $result;
}
@ -274,7 +274,7 @@ class mtgGoCodegen extends mtgCodegen
$repl['%import_from_mysql%'] = '';
$repl["%export_to_arr%"] = "";
if($struct->hasToken('POD') && $struct->hasToken("table"))
if($struct->hasToken("table"))
{
$ind = 0;