Hi all,
I made a code generator template for Go based on Delphi, but for some reason the "Import Section" ("uses") doesn't seem to work for Go with the exact same template code as for Delphi.
Delphi generates this code for a given model:
uses MLStringIdentifier, Language, AmClass;
but nothing at all for Go. :(
Template code for Delphi is:
$imports = %fileImports%
$uses = %WRAP_LINES($imports, "50", " ")%
%if $uses != ""%
uses %TRIM_LEFT($uses, " ")%;\n
%endIf%
Template code for Go:
$imports = %fileImports%
$uses = %WRAP_LINES($imports, "50", " ")%
%if $uses != ""%
import ( %TRIM_LEFT($uses, " ")% )\n
%endIf%
Any ideas? Is something in EA "hard coded" as to recognize dependencies only if Delphi language is set for classes, or what in the world can be the cause for EA (well, %fileImports%) not being aware of any dependencies in the Go-case?
// Rolf