New Features
- Completed the refactoring of
gform
to improve scalability, and fixed some detail issues, and improved unit test cases ( https://goframe.org/database/orm/index); - Added group routing feature for
WebServer
route registration ( https://goframe.org/net/ghttp/group); - Added
Rewrite
routing feature toWebServer
( https://goframe.org/net/ghttp/static); - Added automatic recognition of the development environment at runtime;
- Added
Travis CI
for automated building/testing;
New Functions
- Improved
WebServer
static file service functionality, addedSetStaticPath
/AddStaticPath
methods ( https://goframe.org/net/ghttp/static); - Added
Filter
chaining method togform
for filtering non-table field key-value pairs in parameters ( https://goframe.org/database/orm/linkop); - Added
Data
method togcache
for obtaining all cache data items; - Added
GetConn
method togredis
for obtaining native Redis connection objects;
Function Improvements
- Improved the
Where
method ofgform
to supportslice
type parameters and more conveniently supportin
operation queries ( https://goframe.org/database/orm/linkop); - Improved
gproc
inter-process communication data structure, expandedpid
field from16bit
to24bit
; - Improved
gconv
/gmap
/garray
, added several operation methods; - Improved the
date
built-in function in thegview
template engine, printing the current system time when the given timestamp is empty; - Improved the
gview
template engine to display empty when the printed variable does not exist (default standard library shows<no value>
); - Improved
WebServer
by removingHANGUP
signal monitoring to avoid abnormal exit issues when running throughnohup
; - Enhanced
gcache
performance and improved benchmark tests;
Bug Fixes
- Fixed cache resource contention issue when
gcache
is closed with non-LRU features, and fixed return value issue ofdoSetWithLockCheck
internal method; - Fixed random number bit overflow issue in
grand.intn
internal method on thex86
architecture; - Fixed byte length overflow issue caused by automatic matching of
Int
method ingbinary
targeting[]byte
parameter length; - Fixed Go variable encoding issue in
gjson
due to official standard libraryjson
not supportingmap[interface{}]*
types; - Fixed data race issue in some methods of
garray
, and fixed binary search sorting issue; - Fixed parameter retrieval issue in
ghttp.Request.GetVar
method; - Resolved
gform
database connection pool not working problem;