private static CharSequence generateEnumDeclaration(final String name, final Token encodingToken)
    {
        final Encoding encoding = encodingToken.encoding();
        return "type " + name + " " + goTypeName(encoding.primitiveType()) + "\n";
    }
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