支持GoFrame
来源:GoFrame
浏览 9
扫码
分享
2024-12-09 22:00:09
New Features
- The main repository has migrated from
gitee
to github
( https://github.com/gogf/gf ), with gitee
serving as a mirror site for domestic code contributions and ISSUE submissions. Migration details are available at: https://goframe.org/upgradeto150 - Significant improvements/enhancements have been made to the commonly used
container
array module: garray
, including the addition of many commonly used methods, improved unit test cases, and method annotations. See API documentation: https://pkg.go.dev/github.com/gogf/gf/v2/container/garray - Significant improvements/enhancements have been made to the commonly used
container
set module: gset
, including the addition of many commonly used methods, improved unit test cases, and method annotations. See API documentation: https://pkg.go.dev/github.com/gogf/gf/v2/container/gset - Significant improvements/enhancements have been made to the commonly used
container
MAP module: gmap
, including the addition of many commonly used methods, improved unit test cases, and method annotations. See API documentation: https://pkg.go.dev/github.com/gogf/gf/v2/container/gmap - Significant improvements/enhancements have been made to the commonly used string module:
gstr
, including the addition of many commonly used methods, improved unit test cases, and method annotations. See API documentation: https://pkg.go.dev/github.com/gogf/gf/v2/text/gstr - Improved support for
struct
/ *struct
parameters in gform
, adjusting parameters of *Insert/*Save/*Replace/*Update/Where/Data
methods to interface{}
type, supporting parameter passing of any type: string/map/slice/struct/*struct
. Refer to: https://goframe.org/database/orm/chaining - Added/improved test cases for several modules, including:
gvalid
/ gregex
/ garray
/ gset
/ gmap
/ gstr
/ gconv
/ ghttp
/ gdb
; - As the
gkafka
module is relatively heavy and not a core module of the framework, it has been moved to a new repository for independent management, and the related dependency package has been removed: https://github.com/gogf/gkafka - Added
greuseport
module to implement TCP REUSEPORT
feature: https://pkg.go.dev/github.com/gogf/gf/v2/net/greuseport
New Features/Improvements
- Removed memory overhead caused by automatic initialization of
session
object in template engine’s built-in variables; - Improved
ghttp.Client
, adding several methods. See: https://goframe.org/net/ghttp/client - Added
COMMON
method to ghttp
group routing for registering commonly used HTTP METHOD
(GET/PUT/POST/DELETE
) routes; - Updated framework dependencies for the
golang.org/x/sys
module; - Improved
gform
batch operation return result object, allowing accurate retrieval of affected record rows through the result object; - Moved
gstr
/ gregex
modules from util
category to text
category directory; - Moved
gtest
module from util
category to test
category directory; - Improved
glog
method annotations;
Bug Fixes
- Fixed issue where emails with dots were not successfully matched using
gvalid.Check
with the “ email
“ rule; - Fixed failure issue with
gvalid.Check
under regex
rule; - Fixed issue in the
gcron
module timing rules where days and weeks did not allow ?
symbol; - Fixed issue where
ghttp.Server
returned 200
status code in some exceptional cases; - Fixed “memory leak” issue caused by atomic operations in the
gfpool
module under high concurrency; - Fixed issue where the method
Index
routing could only be accessed through /xxx/index
when registering group route/controls; - Fixed error issue when using the template engine without a
config.toml
(even if not used) configuration file; - Other fixes;