public class GolangGenerator extends Object implements CodeGenerator
Constructor and Description |
---|
GolangGenerator(Ir ir,
OutputManager outputManager)
Create a new Go language
CodeGenerator . |
Modifier and Type | Method and Description |
---|---|
void |
generate()
Generate the complete set of types and messages for a schema.
|
void |
generateFileFromTemplate(String fileName,
String templateName)
Generate a file for the Ir based on a template.
|
void |
generateMessageHeaderStub()
Generate the composites for dealing with the message header.
|
void |
generateTypeStubs()
Generate the stubs for the types used as message fields.
|
public GolangGenerator(Ir ir, OutputManager outputManager)
CodeGenerator
.ir
- for the messages and types.outputManager
- for generating the codecs to.public void generateFileFromTemplate(String fileName, String templateName) throws IOException
fileName
- to generate.templateName
- for the file.IOException
- if an error is encountered when writing the output.public void generateTypeStubs() throws IOException
IOException
- if an error is encountered when writing the output.public void generateMessageHeaderStub() throws IOException
IOException
- if an error is encountered when writing the output.public void generate() throws IOException
generate
in interface CodeGenerator
IOException
- if an error is encountered when writing the output.Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.