public Writer createOutput(final String name) throws IOException
    {
        final File targetFile = new File(outputDir, name + ".go");

        return Files.newBufferedWriter(targetFile.toPath(), StandardCharsets.UTF_8);
    }
Create a new output which will be a golang source file in the given package.
<p>
The {@link java.io.Writer} should be closed once the caller has finished with it. The Writer is
buffered for efficient IO operations.

@param name the name of the golang class.
@return a {@link java.io.Writer} to which the source code should be written.
@throws IOException if an issue occurs when creating the file.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/struct/GolangOutputManager.java