Skip to content

Releases: nikolaydubina/go-enum-encoding

v1.4.2

28 May 11:12
6055f6d
Compare
Choose a tag to compare
  • iota illustration

v1.4.1

28 May 11:08
ca4004a
Compare
Choose a tag to compare
  • illustration for iota

v1.4.0

04 Apr 11:47
baa2c29
Compare
Choose a tag to compare
  • short mode for inlining switch
  • long mode example with currencies
  • removed String
  • encoding defines an array of byte slices

v1.3.0

04 Apr 06:51
4d69665
Compare
Choose a tag to compare
  • generating benchmarks
  • research for array loop benchmarks

v1.2.1

28 Mar 12:22
Compare
Choose a tag to compare
  • smaller code, [][2]string instead of map. removing convertion.

empty tag notation

28 Mar 07:37
59c62c7
Compare
Choose a tag to compare
  • no more json:"-" tag
  • instead using json:"" tag

this is to simplify definition of empty values

allowing empty values

28 Mar 07:23
174d827
Compare
Choose a tag to compare
  1. Unknown is not a special word
  2. Unknown is not required
  3. empty value is optional and can be bound to any symbol name
  4. 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

27 Mar 03:00
d0b4629
Compare
Choose a tag to compare
  • no log (which uses fmt)

v1.0.15

27 Mar 02:37
253fdd5
Compare
Choose a tag to compare
  • no fmt
  • no bytes

v1.0.14

27 Mar 00:24
fbcf27c
Compare
Choose a tag to compare
  • 120 LOC