支持GoFrame
来源:GoFrame
浏览 9
扫码
分享
2024-12-09 22:00:12
New Features
ORM
adds support for SQLServer
and Oracle
(https://goframe.org/database/orm/database);- Completes the sequential feature of validation results in the
gvalid
module (https://goframe.org/util/gvalid/checkmap); - Improves
ghttp.Request.Exit
to enable immediate business execution exit when called, sparing developers from using return
after the Exit
method call (https://goframe.org/net/ghttp/service/object); - Adds several built-in functions to the template engine:
text/html/htmldecode/url/urldecode/date/compare/substr/strlimit/hidestr/highlight/toupper/tolower/nl2br
(https://goframe.org/os/gview/funcs); - Adds built-in variable
Config
to the template engine (https://goframe.org/os/gview/vars); - Improves the default conversion rules of
gconv.Struct
, supporting case-insensitive matching of key names and attribute names; gform
configuration files support linkinfo
custom database connection fields (https://goframe.org/database/orm/config);- The
gfsnotify
module adds the ability to unregister specific callbacks (https://goframe.org/os/gfsnotify/index);
New Functionalities
- Improves
ghttp.Request
by adding methods SetParam/GetParam
for setting/getting custom variables in the request process, allowing variable sharing in the callback functions during the request process (https://goframe.org/net/ghttp/request); - Improves
ghttp.Response
by adding the ServeFileDownload
method for guiding web server to client-side file downloads (https://goframe.org/net/ghttp/response); - The
gvar
module introduces the gvar.VarRead
read-only interface to control the exposure of data read functionality; - Adds
g.Throw
for exception throwing and g.TryCatch
for exception catching methods; - Improves the
gcron
module with the addition of a custom Cron management object and adds New/Start/Stop
methods;
Functional Improvements
- WebServer adds the
RouterCacheExpire
configuration parameter for setting the expiration time of route search cache; - WebServer allows the same
HOOK
event to be registered multiple times, with higher priority given to callbacks registered earlier (https://goframe.org/net/ghttp/service/hook); - When the current working directory is a system temporary directory, it does not add the directory to the search path by default in
gcfg
/gview
/ghttp
modules; - Improves the default support for cross-origin requests in
WebSocket
(https://goframe.org/net/ghttp/websocket); - Enhances
gtime.Format
to support Chinese; - Enhances
gfsnotify
to handle hot update issues when editors perform non-standard edits (RENAME+CHMOD) to files; - Improves the
gtype.Set
method by adding an atomic operation to return the old variable value; gfile.ScanDir
adds support for pattern
multiple file mode matching, using ,
to separate multiple match modes;- The
gcfg
module adds the capability to get configuration variables as *gvar.Var
; - The
gstr
module adds a method for Chinese string truncation; - Improves
gtime.StrToTime
to match common time format patterns and adds the gtime.ParseTimeFromContent
method; - Changes the environment variable names for configuration management, template engine, and debug modes to uppercase underscore standard format;
- Improves the random number generation design in the
grand
module, implementing high-speed generation using crypto/rand
+ buffer (https://goframe.org/util/grand/index);
Bug Fixes
- Fixes the search failure issue in the
gspath
module on Windows
; - Fixes the retrieval issue with indexFiles during
Search
in the gspath
module; - Bug fix INZS1 (https://github.com/gogf/gf/issues/INZS1);
- Fixes the execution issue of
gproc.ShellRun
on Windows.