private static CharSequence generateConstructorsAndOperators(final String className)
    {
        return String.format(
            "    func %1$s() {\n\n" +

                "    func %1$s(\n" +
                "        buffer []byte,\n" +
                "        offset uint64,\n" +
                "        bufferLength uint64,\n" +
                "        actingBlockLength uint64,\n" +
                "        actingVersion uint64) {\n" +
                "        m.buffer := buffer\n" +
                "        m.bufferLength := bufferLength\n" +
                "        m.offset := offset\n" +
                "        m.position := sbeCheckPosition(offset + actingBlockLength)\n" +
                "        m.actingBlockLength := actingBlockLength\n" +
                "        m.actingVersion := actingVersion\n" +
                "    }\n\n",
            className);
    }
Create a new Golang language {@link CodeGenerator}.

@param ir                            for the messages and types.
@param shouldDecodeUnknownEnumValues generate support for unknown enum values when decoding.
@param outputManager                 for generating the codecs to.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/golang/flyweight/GolangFlyweightGenerator.java