public class GolangOutputManager extends Object implements OutputManager
OutputManager
for managing the creation of golang source files as the target of code generation.
The character encoding for the Writer
is UTF-8.Constructor and Description |
---|
GolangOutputManager(String baseDirName,
String namespaceName)
Create a new
OutputManager for generating golang source files into a given package. |
Modifier and Type | Method and Description |
---|---|
Writer |
createOutput(String name)
Create a new output which will be a golang source file in the given package.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
withOutput
public GolangOutputManager(String baseDirName, String namespaceName)
OutputManager
for generating golang source files into a given package.baseDirName
- for the generated source code.namespaceName
- for the generated source code relative to the baseDirName.public Writer createOutput(String name) throws IOException
The Writer
should be closed once the caller has finished with it. The Writer is
buffered for efficient IO operations.
createOutput
in interface OutputManager
name
- the name of the golang class.Writer
to which the source code should be written.IOException
- if an issue occurs when creating the file.Copyright © 2013-2020 Real Logic Limited. All Rights Reserved.