Releases: nikolaydubina/go-enum-encoding
Releases · nikolaydubina/go-enum-encoding
v1.4.2
v1.4.1
- illustration for
iota
v1.4.0
- short mode for inlining switch
- long mode example with currencies
- removed String
- encoding defines an array of byte slices
v1.3.0
- generating benchmarks
- research for array loop benchmarks
v1.2.1
- smaller code, [][2]string instead of map. removing convertion.
empty tag notation
- no more
json:"-"
tag - instead using
json:""
tag
this is to simplify definition of empty values
allowing empty values
- Unknown is not a special word
- Unknown is not required
- empty value is optional and can be bound to any symbol name
- if json does not match any values (including empty string, if any), then error
this effectively allows to have both options: A) error on empty values; or B) treat empty value as one of values.
bug fixes:
- when json tags strings have different ordering from symbol values ordering, ordering was breaking. now ordering is preserved.
v1.0.16
- no log (which uses fmt)
v1.0.15
- no fmt
- no bytes
v1.0.14
- 120 LOC