Go Generator Attributes
Here’s the list of attributes that affect Lua code generation.
See also
Attribute |
Type |
Inheritance |
Target |
Description |
Default |
|---|---|---|---|---|---|
enabled |
bool |
scope |
module,
type
|
Enables code generation for
the module or type.
|
|
file |
string |
module |
Override generated file name. |
||
package |
string |
module |
Go package name. |
||
name |
string |
module,
type,
record field
enum field
|
Override generated name. |
||
field_notation |
scope |
record field
enum field
|
Notation used for name
translation of record or enum
field names.
|
|
|
prefix |
string |
scope |
enum field
|
Provides the common prefix
for enum field names.
|
|
string_enum |
string |
scope |
enum |
Generate enum as set of string
constants, not integers
|
|
interface |
string |
variant |
Generate common interface type
for variant and its
descendents with the given
name
|
|