- Refactored the
helper
package and split it into several focused packages.helper/filesystem
moved toutil/fsutil
helper/walk
moved toutil/walk
- New package
util/httputil
- Contains
ParseMultiValuesHeader()
andHeaderValue
- Contains
- New package
util/reflectutil
- Contains
Only()
- Contains
- New package
util/sliceutil
- Contains
IndexOf()
,IndexOfStr()
,Contains()
,ContainsStr()
andEqual()
(previously namedSliceEqual()
)
- Contains
- New pacakge
util/sqlutil
- Contains
EscapeLike()
- Contains
- New package
util/typeutil
- Contains
Map
,ToFloat64()
,ToString()
- Contains
Motivation: The helper
packaged started to become more and more bloated with functions for things unrelated to each other. To make this part of the code more idiomatic and expressive, the decision to split the package in several parts and re-think the naming was taken.
- The
required
rules now allows empty strings. - Removed
model:"hide"
because it was redundant withjson:"-"
. - Added
goyave.ProxyBaseURL()
andserver.proxy
configuration entries. - Added global middleware. Global middleware are executed on all requests, including requests that don't match any route or that result in "Method Not Allowed". This allows for better logging, rate limiting, and more, while keeping the already existing tools.