Golang
To define Golang as the target language in a template file :
#set( $env.language = 'Go' )
The information below shows the behavior of the generator when Golang is the current target language.
The table below describes how model neutral types are automatically converted to Golang types with potential impact due to attribute annotations.
Model type | Go type | with annotation |
string | string | |
byte | byte
uint8 | @UnsignedType |
short | int16
uint16 |