Skip to content

Releases: go-playground/mold

Release 3.0.1

24 Dec 18:00
d9c7865

Choose a tag to compare

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

11 Nov 19:23

Choose a tag to compare

What's new?

  • Update to use Go Modules.

Release 2.2.0

13 Nov 04:56
6bc20ce

Choose a tag to compare

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

31 Oct 12:03
fab1b28

Choose a tag to compare

What's new?

Changed package to use gopkg.in for easier dependency management.

Release 2.0.0

02 Oct 02:55

Choose a tag to compare

#What's changed?

  • Added support for params e.g. lttrim=#$_ ... function signature had to change to add.
  • Change trim tag from trim space to trim
  • Added trim, trim, prefix, suffix, lcase, ucase and snake to modifiers
  • Changed scrubber backend for text scrubbing and adjustable name

Release 1.0.0

07 Aug 05:14

Choose a tag to compare

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.