From a37da318fcdedcee8e8e8dccb6c4c488601d10ee Mon Sep 17 00:00:00 2001 From: Pavel Merzlyakov Date: Mon, 22 Aug 2022 15:04:57 +0300 Subject: [PATCH] golang target changed --- targets/go/go.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/go/go.inc.php b/targets/go/go.inc.php index 1e546a6..66c2602 100644 --- a/targets/go/go.inc.php +++ b/targets/go/go.inc.php @@ -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;