Class GolangGenerator
java.lang.Object
uk.co.real_logic.sbe.generation.golang.GolangGenerator
- All Implemented Interfaces:
CodeGenerator
Codec generator for the Go Lang programming language.
-
Constructor Summary
ConstructorsConstructorDescriptionGolangGenerator(Ir ir, OutputManager outputManager) Create a new Go languageCodeGenerator. -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Generate the complete set of types and messages for a schema.voidgenerateFileFromTemplate(String fileName, String templateName) Generate a file for the Ir based on a template.voidGenerate the composites for dealing with the message header.voidGenerate the stubs for the types used as message fields.
-
Constructor Details
-
GolangGenerator
Create a new Go languageCodeGenerator.- Parameters:
ir- for the messages and types.outputManager- for generating the codecs to.
-
-
Method Details
-
generateFileFromTemplate
Generate a file for the Ir based on a template.- Parameters:
fileName- to generate.templateName- for the file.- Throws:
IOException- if an error is encountered when writing the output.
-
generateTypeStubs
Generate the stubs for the types used as message fields.- Throws:
IOException- if an error is encountered when writing the output.
-
generateMessageHeaderStub
Generate the composites for dealing with the message header.- Throws:
IOException- if an error is encountered when writing the output.
-
generate
Generate the complete set of types and messages for a schema.- Specified by:
generatein interfaceCodeGenerator- Throws:
IOException- if an error is encountered when writing the output.
-