Golang
To define Golang as the target language in a template file :
The information below shows the behavior of the generator when Golang is the current target language. For a detailed description of type conversion, see the generated documentation : https://www.telosys.org/doc/latest/languages/language-go.html
Types conversion
The table below describes how model neutral types are automatically converted to Golang types with potential impact due to attribute annotations.
Annotations effects
@UnsignedType has effect only for byte, short, int, long
@ObjectType no effect
@NotNull no effect
@PrimitiveType no effect
Specific types
$attribute.fullType no effect (always returns the standard Go type)
$attribute.simpleType
no effect (always returns the standard Go type)
$attribute.wrapperType no effect (always returns the standard Go type)
So, for Golang you can always use the basic "$attribute.type"
See also
For more information about Golang types see :
Literal values
TRUE, FALSE, NULL
Generated literal values
Below some examples of literal values generated for each type :
Last updated