github zarldev/goenums v0.3.6

latest releases: v0.4.4, v0.4.3, v0.4.2...
6 months ago

Release Notes: goenums v0.3.6

Overview

Version 0.3.6 enhances goenums with improved string handling capabilities, support for multiple aliases, adoption of Go 1.21+ range-over-func features, and various bug fixes for improved stability and performance.

New Features

  • Enhanced String Support: Improved handling of string literals and operations for more robust enum generation
  • Multiple Alias Support: Added capability to handle multiple aliases for enum values, providing greater flexibility
  • Go 1.21+ Range Over Func: Leveraged Go 1.21's range-over-func feature for cleaner iteration code generation while maintaining backward compatibility
  • New Documentation: Documentation

Bug Fixes

  • Fixed issues with enum code generation
  • Resolved inconsistencies in case-insensitive string parsing
  • Improved error handling for more informative debugging
  • Fixed edge cases in enum parsing from Go source files

Other Improvements

  • Code refactoring for better maintainability
  • Performance optimizations for enum generation
  • Enhanced documentation and logging
  • General stability improvements across multiple input files

Requirements

  • Go 1.21 or higher (for full feature support)
  • Legacy mode available for older Go versions

Upgrading

This release maintains backward compatibility with previous versions. Simply update your dependencies to use v0.3.6.

Don't miss a new goenums release

NewReleases is sending notifications on new releases.