Go Generator Attributes

Here’s the list of attributes that affect Lua code generation.

Attribute

Type

Inheritance

Target

Description

Default

enabled

bool

scope

module,
type
Enables code generation for
the module or type.

true

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

Notation

scope

record field
enum field
Notation used for name
translation of record or enum
field names.

upper_camel

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

false

interface

string

variant

Generate common interface type
for variant and its
descendents with the given
name

table