Formam Versions Save

a package for decode form's values into struct in Go

v3.6.0

2 years ago
  • feature: Call UnmarshalText for every value if the name ends with [] #38
  • fixbug: Check array length when traversing array #40
  • fixbug: Error "unsupported type; ..." with map[string]*struct #42
  • fixbug: Decoding to struct with multiple embedded types with IgnoreUnknownKeys #46

v3.5.0

3 years ago
  • Disable UnmarshalText interface by the DecoderOptions struct. #34
  • Fixed a bug when the traverse function fails and the current index/key was not flushed #35

v3.4.0

3 years ago
  • Limit the array size to 16,000 by default to prevent people sending [9999999]key to starve a machine of memory. This can be configured with MaxSize in DecoderOptions. #32

3.3.0

4 years ago
  • Only Go 1.10 and newer is supported (#23)
  • Add error codes to the returned errors (#23, #27)
  • Fix intermittent failures when scanning an array of structs (#28)
  • Error.Path is now exported (#29)

3.2.0

4 years ago
  • Ignore struct tag options
  • added go.mod file

v3.1

5 years ago

v3.0

6 years ago

v2.0

7 years ago
  • Supports to register a function to custom type for a specific fields or all that include it
  • Now it is possible access to a map by brackets "[key_here]" from html
  • The map's key supports all types availables: int and variants, uint and variants, uintptr, float32, float64, bool, struct, custom types to one of the above types registered by function or UnmarshalText method
  • Supports to multidimension slice
  • custom name for tag name
  • Now returns a custom error by its Error interface
  • notable performance increase
  • fix various bugs

v1.0

7 years ago