Releases: go-playground/mold
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!
Release 3.0.0
What's new?
- Update to use Go Modules.
Release 2.2.0
What was added?
Added map key support with new keys and endkeys eg.
type Test struct {
Map map[string]string `mold:"dive,keys,trim,endkeys,trim"`
}keys must be directly after the dive tag; this was done for efficiency to allow map keys and values to be br handled within the same range.
Release 2.1.0
What's new?
Changed package to use gopkg.in for easier dependency management.
Release 2.0.0
#What's changed?
- Added support for params e.g.
lttrim=#$_... function signature had to change to add. - Change trim tag from
trim spacetotrim - Added
trim,trim,prefix,suffix,lcase,ucaseandsnaketo modifiers - Changed scrubber backend for text scrubbing and adjustable
name
Release 1.0.0
Initial Release
Been asked several times if a couple of my libraries, form and validator, could initialize or set default values of which they were not designed to do and so without further ado I give you mold
mold can help with setting values based on tags and can chain together many; this library is in it's infancy and has very few built in scrubbers and modifiers, as I've dubbed them, help in creating more is welcome.