Releases: nikolaydubina/go-enum-encoding
Releases · nikolaydubina/go-enum-encoding
v1.9.0
- single file for all tests, now generating only 2 files per enum
- cleanup docs
- simplify tests, aggregate test cases to most representative single file
- remove customizations
- use only switch based enums, due to better performance (Go JUMP tables faster than maps), and if enum needs runtime map, then likely may need other type. enums has to be close to compiler level, not runtime
- snake_case conversion of enum
- b.Loop()
- AppendText
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.2
v1.6.1
What's Changed
- Tailscale feedback by @nikolaydubina in #28
- fixes issue with missing dot in generated code header line
- fixes issue with package level godoc is mixed with generated directive
- avoid malloc in String() method
- short version of String method
- conversion to string is efficient as conversion to []byte
Full Changelog: v1.6.0...v1.6.1
v1.6.0
v1.5.0
Warning
go:generate command is required to be immediately before var/const block with enum values
What's Changed
- Iota example by @nikolaydubina in #23
- Support multiple enums in same file by @orenl in #26
New Contributors
Full Changelog: v1.4.1...v1.5.0
v1.4.2
iota
illustration