linkedin / linkedin/goavro

Not using struct tags

Open
#189 1 comment 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.1k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

First, I would like to thank you for the library!.

From an user's perspective, we have been really successful in creating an internal Kafka implementation using `goavro`!.

Within the team, especially on me, there was a question that has been bothering my mind, that is:

What was the rationale behind not using Struct tags vs maps?. (speed? avoid reflection?)

I've seen that you even state on the README.md the following remark:

> Goavro does not use Go's structure tags to translate data between native Go types and Avro encoded data.

I think that means that you had that approach in mind while creating the library.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the struct-tags statement in README.md and inspect the library's documented handling of native Go types, maps, and Avro encoding. Clarify the rationale for not using Go struct tags, including any relevant trade-offs, and update the documentation if the project agrees on wording.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
data
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.