code: public Writer createOutput(final String name) throws IOException
      {
          final File targetFile = new File(outputDir, name + ".go");
  
          return Files.newBufferedWriter(targetFile.toPath(), StandardCharsets.UTF_8);
      }
docs: 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
  buffer 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.