Releases: go-playground/mold
Release 4.5.0
Release 4.4.0
Release 4.3.0
What's new?
- Added new
set
modifier. It's like default but sets regardless. - Added new
empty
modifier which sets the value to the default Go value for that type.
release 4.2.1
What was fixed?
This fixes tracking unaddressable fields. This can be an issue when passing data to be changed through multiple interfaces.
current
was not being remapped to the new blue when iterating on multiple modifiers cause only the last to be truly applied.
Release 4.2.0
What's new?
Added new strip_punctuation
modifier. Thanks @nchelluri for the PR
Release 4.1.0
What's new?
- Update the set logic to handle more types eg.
type State string
now works! - Added
Interceptors
allowing redirection of modifiers being applied to an inner type/value. See here for a simple example supportingsql.NullString
Release 4.0.0
What's new?
Initial v4 release!
- More tags added and documented in the
README
- Changed function signature allowing:
- Setting nil values on pointers
- Future proofing allowing additions without a breaking change
- Unexposed functions simplifying the interface.
NOTE: The breaking change is due to the functions signature change, none of the tag name have changed. If you have not registered/created any custom functions this can be upgrade in-place safely.
Release 3.1.1
What was fixed?
Removed debug accidentally checked in during the last v3.1.0 changes for the new default
tag.
Release 3.1.0
What's new?
- Updated to GitHub Actions CI
- Added new
default
tag modifier
Release 3.0.1
What was fixed?
Fixed an issue where diving into an array of structs with no other tags caused a nil pointer exception, thanks @THE108 for the original PR!