avro
avro copied to clipboard
Avro codec and code generation for Go
Hey, I'm using the `confluent-kafka-go`, during the deserialization-generic flow they call [`avro.Unmarshal`](https://github.com/confluentinc/confluent-kafka-go/blob/master/schemaregistry/serde/avro/avro_generic.go#L130), which by consequence it will use the [`globalNames.Unmarshal`](https://github.com/heetch/avro/blob/master/decode.go#L24). In my case, I'm experiencing an error of `Incompatible types`...
When trying to encode the data type: ```go type Data struct { Data *[]*string `json:"data"` } ``` which is generated with avrogo from the schema ```json { "type": "record", "name":...
Hi there! I'm finding that using marshal and unmarshal on an empty slice in a struct turns that value into a nil, which seems incorrect, given that I believe the...
Solves issue #40 # Testing About testing, I tried with this original Go file: ``` package avro type Age struct { Years string `json:"years"` Address Address `json:"address"` } type Address...
- Caches schema IDs at the time of encoder creation instead of when the schema ID is required at runtime ⚠️ This is just a POC!
Hiya, I came across "interface types (interface {}) not yet supported (use avrogo instead)" error whilst trying out this library. Error comes from gotype.go#273. Maybe interface{} types could be matched...
Hi @rogpeppe , I'm using `go2avro` but I'm unable to specify a namespace automatically. Since the program is for 1 type at a time, would be interesting to allow specifying...
Following these commands: ``` cd heetch/avro go build ./cmd/go2avro/. ./go2avro Type ``` It modifies the `go.sum` and `go.mod` as a side-effect. This issue is intended to fix this side-effect.
If there's more data in the buffer than needed, Unmarshal will succeed, but it should probably fail.