heetch / heetch/avro

encode nil slices and maps as null

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
95
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Both maps and slices can already be nil, so perhaps we could encode the union `["null", {"type": "map", "values": "int"}]` as `map[string]int]` not `*map[string]int` as we do currently.

But this would mean that Go maps and slices would _always_ encode as a null union, which might not be desired.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.