Skip to content

Supporting Custom Codecs #288

@marcoserrato

Description

@marcoserrato

Hello!

I'm fairly new to the Go ecosystem and was curious whether supporting custom codecs would potentially be on the roadmap for this project.

In my particular case, I have a custom type which wraps a fixed type and requires additional encoding/decoding steps. More specifically, my type has an additional layer of compression which needs to be handled during textual serialization. In Ruby, I can use a library such as Avromatic to define custom encoding/decoding steps for a custom type I might be registering.

Perhaps there's some Go pattern I'm unaware of that would allow me to do this, but for now I've landed on just forking the project and augmenting the default symbol table to include my custom type with its own codec. However, I'd like to avoid maintaining a fork of this project longterm, and ideally define my custom logic in the project that includes goavro.

I've searched through a few issues, and If I'm not misunderstanding, this issue seems to resonate with my problem, in that support for custom textual encoders/decoders would helpful. However, given the timeline, I'm not entirely sure whether it's still being pursued.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions