1e3aa5f080
fix: v2.9.5 ( #4503 )
v2.9.5
contrib/sdk/httpclient/v2.9.5
contrib/config/kubecm/v2.9.5
contrib/drivers/pgsql/v2.9.5
contrib/config/apollo/v2.9.5
contrib/config/consul/v2.9.5
contrib/registry/zookeeper/v2.9.5
contrib/trace/otlpgrpc/v2.9.5
contrib/drivers/dm/v2.9.5
contrib/rpc/grpcx/v2.9.5
contrib/registry/file/v2.9.5
contrib/config/polaris/v2.9.5
contrib/registry/consul/v2.9.5
contrib/nosql/redis/v2.9.5
contrib/trace/otlphttp/v2.9.5
contrib/drivers/oracle/v2.9.5
contrib/drivers/sqlitecgo/v2.9.5
contrib/drivers/mssql/v2.9.5
contrib/registry/nacos/v2.9.5
contrib/drivers/mysql/v2.9.5
contrib/config/nacos/v2.9.5
contrib/registry/polaris/v2.9.5
contrib/metric/otelmetric/v2.9.5
contrib/registry/etcd/v2.9.5
contrib/drivers/clickhouse/v2.9.5
contrib/drivers/sqlite/v2.9.5
2025-11-10 21:40:35 +08:00
fde47e8981
fix(cmd/gf): The problem of the command 'gen dao' becoming very slow ( #4498 )
...
fixed #4479
修复gf gen dao执行严重变慢的问题
主要调整,降级两个依赖库
`go get golang.org/x/tools@v0.26 .0` // 直接依赖
`go get golang.org/x/text@v0.25 .0` // 间接依赖
至于为什么这两个库会导致慢,还需要深入排查
2025-11-10 17:38:50 +08:00
c02148cd6b
feat(container/garray): Sorted T Array ( #4470 )
...
Add the sorted T array
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-10-17 18:10:31 +08:00
1d4e684949
refactor(cmd/gf): Optimize run command to reload only on file write events ( #4476 )
...
优化run命令使得只在文件有写入事件时才触发reload:
gf run 的文件监控逻辑之前会对所有文件系统事件做出响应,包括非内容修改的事件(如文件access
time变化),这会导致开发过程中不必要的频繁重载。本次修改在文件监控回调中增加了event.IsWrite()的判断,确保只有在文件内容被实际写入时才触发重载逻辑,优化了开发体验。
2025-10-16 16:20:24 +08:00
8ff0de88b8
build(contrib): upgrade nacos registry&config ( #4473 )
...
RT
2025-10-16 11:29:44 +08:00
ac3efe5a00
feat(os/gcfg): Add file watcher with custom callback support ( #4446 )
...
为`gcfg`添加配置文件变更自定义回调,实现了`WatcherAdapter`接口,以下是`AdapterFile`的用法
test.yaml
```
b: "b"
```
```
package main
import (
"fmt"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gcfg"
"github.com/gogf/gf/v2/os/gctx"
)
func main() {
ctx := gctx.New()
file, _ := gcfg.NewAdapterFile("test.yaml")
file.Data(ctx)
file.AddWatcher("test", func() {
value := file.MustGet(ctx, "b")
fmt.Println(value.String())
})
server := g.Server()
server.Run()
}
```
使用`g`和默认配置文件
```
file := g.Cfg().GetAdapter().(*gcfg.AdapterFile)
file.AddWatcher("test", func() {
})
file := g.Cfg().GetAdapter().(*gcfg.AdapterFile)
file.RemoveWatcher("test")
```
注意:由于`gf`的`AdapterFile`使用的监听到文件变化删除缓存下一次重新初始化的懒加载方案,所有除了默认加载的`config.xxx`文件外,自定义的配置文件像`test.yaml`之类的都需要在`AddWatcher`前主动读取一次数据进行初始化监听(
`g.Cfg("test").Data(ctx)`)
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hunk Zhu <hunk@joy999.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-15 16:59:52 +08:00
2744fe2212
fix(net/gclient): fix content-type 'application/json;charset=utf-8' … ( #4369 )
...
fix(net/gclient): fix content-type 'application/json;charset=utf-8' can
not match `application/json`
---------
Co-authored-by: houseme <housemecn@gmail.com >
2025-10-15 16:14:33 +08:00
1682cc98bb
feat(gdb): Allow to set table field metadata and allow to generate table fields registration code when generating dao ( #4460 )
...
`gdb`在第一次查询时会拉取一次`table`的`fields meta`信息,为后续orm的字段过滤和时间特性服务,`gen
dao`时已经获得了`table`的所有`fields
meta`,提供一个生成`table`的功能,允许客户自行决定是否生成,是否注入已知表结构缓存到指定`db`实例。
1. 能解决部分兼容`mysql`的二开数据库在获取`fields meta`时无法和`mysql`保持一致的问题。
2.
可以模拟表字段信息而不需要真实的数据库连接,对于已知的表结构,可以直接设置缓存,在无法连接数据库的情况下,仍然可以使用表字段信息,使用gdb构建sql时不需要受限于实际数据库即可使用`gdb.ToSQL()`方法。
4. 提升访问速度
生成的示例目录
<img width="389" height="670" alt="SCR-20251010-ntne"
src="https://github.com/user-attachments/assets/ebb08e70-cce1-4b73-9128-6ff784e4df3b "
/>
生成的示例代码
```golang
// =================================================================================
// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed.
// =================================================================================
package table
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
)
// RolePermissions defines the fields of table "role_permissions" with their properties.
// This map is used internally by GoFrame ORM to understand table structure.
var RolePermissions = map[string]*gdb.TableField{
"role_id": {
Index: 0,
Name: "role_id",
Type: "bigint unsigned",
Null: false,
Key: "PRI",
Default: nil,
Extra: "",
Comment: "",
},
"permission_id": {
Index: 1,
Name: "permission_id",
Type: "bigint unsigned",
Null: false,
Key: "PRI",
Default: nil,
Extra: "",
Comment: "",
},
"created_at": {
Index: 2,
Name: "created_at",
Type: "timestamp",
Null: false,
Key: "",
Default: "CURRENT_TIMESTAMP",
Extra: "DEFAULT_GENERATED",
Comment: "",
},
"updated_at": {
Index: 3,
Name: "updated_at",
Type: "timestamp",
Null: false,
Key: "",
Default: "CURRENT_TIMESTAMP",
Extra: "DEFAULT_GENERATED on update CURRENT_TIMESTAMP",
Comment: "",
},
"deleted_at": {
Index: 4,
Name: "deleted_at",
Type: "timestamp",
Null: true,
Key: "",
Default: nil,
Extra: "",
Comment: "",
},
}
// SetRolePermissionsTableFields registers the table fields definition to the database instance.
// db: database instance that implements gdb.DB interface.
// schema: optional schema/namespace name, especially for databases that support schemas.
func SetRolePermissionsTableFields(ctx context.Context, db gdb.DB, schema ...string) error {
return db.GetCore().SetTableFields(ctx, "role_permissions", RolePermissions, schema...)
}
```
2025-10-15 15:50:16 +08:00
2742c98c06
fix(os/gcron): unit testing case of package gcron occasionally failed ( #4419 )
...
fix https://github.com/gogf/gf/issues/3999
1. fix jobWaiter sync.WaitGroup data race
2. fix logger glog.ILogger data race
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-15 15:17:05 +08:00
4226a23a39
feat(container/garray): add TArray ( #4466 )
...
Add TArray[T] for wrapping Array
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-15 15:08:26 +08:00
b8e414e125
fix(os/gcache): defaultcache lazy init ( #4468 )
...
defaultcache更改为懒加载,在用户使用redis缓存时,避免了程序启动时不必要的初始化开销。
<img width="2638" height="806" alt="image"
src="https://github.com/user-attachments/assets/96bb0097-8463-4303-971c-ee1a9ef671a6 "
/>
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-10-15 15:01:47 +08:00
08c34b5ed7
feat(gf/build): Add support for the Loongson architecture (loong64) ( #4467 )
...
添加对龙芯架构(loong64)的支持
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-10-15 14:38:42 +08:00
416f314390
fix(contrib/drivers/pgsql): Merge duplicated fields, especially for key constraints. ( #4465 )
...
pgsql 执行TableFields 或者字段信息时需要合并key信息
2025-10-13 18:16:09 +08:00
98f0c36a1d
fix: update gf cli to v2.9.4 ( #4463 )
...
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request )
GitHub action
Co-authored-by: hailaz <hailaz@users.noreply.github.com >
2025-10-11 15:10:30 +08:00
2b7b4c8581
fix: v2.9.4 ( #4461 )
...
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
v2.9.4
contrib/config/nacos/v2.9.4
contrib/sdk/httpclient/v2.9.4
contrib/trace/otlpgrpc/v2.9.4
contrib/drivers/sqlitecgo/v2.9.4
contrib/registry/consul/v2.9.4
contrib/registry/polaris/v2.9.4
contrib/trace/otlphttp/v2.9.4
contrib/drivers/pgsql/v2.9.4
contrib/drivers/mssql/v2.9.4
contrib/rpc/grpcx/v2.9.4
contrib/config/consul/v2.9.4
contrib/config/apollo/v2.9.4
contrib/registry/zookeeper/v2.9.4
contrib/registry/file/v2.9.4
contrib/nosql/redis/v2.9.4
contrib/drivers/mysql/v2.9.4
contrib/config/polaris/v2.9.4
contrib/registry/etcd/v2.9.4
contrib/metric/otelmetric/v2.9.4
contrib/drivers/dm/v2.9.4
contrib/drivers/oracle/v2.9.4
contrib/registry/nacos/v2.9.4
contrib/drivers/clickhouse/v2.9.4
contrib/config/kubecm/v2.9.4
contrib/drivers/sqlite/v2.9.4
2025-10-11 14:58:01 +08:00
b8844f3d40
fix(net/ghttp): attachment filename support utf8 ( #4459 )
2025-10-10 10:32:02 +08:00
3e2176d799
fix:(cmd/gf): matching for table ex fix bug ( #4458 )
...
fix the bug: sometimes it won't remove all broad matching talbenames.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-10-09 12:08:28 +08:00
2f9225057f
fix(contrib/drivers/mysql): Fix unit test issue for batch insert in MySQL driver ( #4456 )
...
Resolve a temporary issue in the unit tests for batch insertion by
adjusting user IDs.
因为底层的插入随机性,会导致单元测试偶发失败。
2025-09-30 14:33:46 +08:00
7b373446dc
feat(cmd/gf): add broad matching to gf gen dao's tableEx attribute. ( #4453 )
...
Add "*" and "?" to tableEx for "gf gen dao".
The "*" will match none or some char. And the "?" only match one char.
Co-authored-by: hailaz <739476267@qq.com >
2025-09-30 11:27:03 +08:00
0f6d47c7a8
fix(container/gqueue): Optimize queue length calculation and loop structure in test cases ( #4455 )
...
fixed #4376
2025-09-29 17:26:39 +08:00
f24729206b
fix(database/gdb): Resolved the schema error in the database output log when using the database sharding feature ( #4319 )
...
error log
```
2025-06-18T15:36:08.315+08:00 [DEBU] {10a3b0cfd9124a186b89b07f50e67ce6} [ 0 ms] [default] [db_0] [rows:1 ] SELECT `id`,`custom_name` FROM `custom` WHERE `id`=1 LIMIT 1
2025-06-18T15:36:09.259+08:00 [DEBU] {10a3b0cfd9124a186b89b07f50e67ce6} [ 1 ms] [default] [db_0] [rows:1 ] SELECT `id`,`custom_name`,`remark`FROM `custom` WHERE `id`=2 LIMIT 1
```
right log
```
2025-06-18T15:36:08.315+08:00 [DEBU] {10a3b0cfd9124a186b89b07f50e67ce6} [ 0 ms] [default] [db_0] [rows:1 ] SELECT `id`,`custom_name` FROM `custom` WHERE `id`=1 LIMIT 1
2025-06-18T15:36:09.259+08:00 [DEBU] {10a3b0cfd9124a186b89b07f50e67ce6} [ 1 ms] [default] [db_1] [rows:1 ] SELECT `id`,`custom_name`,`remark`FROM `custom` WHERE `id`=2 LIMIT 1
```
```
type DbShardingRule struct {
}
func (d *DbShardingRule) SchemaName(ctx context.Context, config gdb.ShardingSchemaConfig, value any) (string, error) {
if name, ok := value.(string); ok && (len(name) > 0) && gstr.HasPrefix(name, config.Prefix) {
return name, nil
}
return "default", nil
}
func (d *DbShardingRule) TableName(ctx context.Context, config gdb.ShardingTableConfig, value any) (string, error) {
return "", nil
}
```
```
config := gdb.ShardingConfig{
Schema: gdb.ShardingSchemaConfig{
Enable: true,
Prefix: "db_",
Rule: &DbShardingRule{},
},
}
dao.Custom.Ctx(ctx).Sharding(config).ShardingValue("db_0").Where("id", 1).One()
dao.Custom.Ctx(ctx).Sharding(config).ShardingValue("db_1").Where("id", 2).One()
```
我有两个完全一样的数据库db_0和db_1,两个custom表里都只有一条数据,id是1和2,执行上面两条查询得的结果是正确的,
输出日志中应该分别是`[default] [db_0]`和`[default] [db_1]`,但是实际输出的都是`[default]
[db_0]`,
查看具体代码实现,该日志由Core实例中获取group和schema构成,而实际执行sql时如果使用了分库特性那么执行sql的link会使用当前面schema重新生成,但是没有重新赋给Core实例,所以输出日志的时候还是错的,只需要在生成link后生成日志前把schema赋给Core就行,方法执行完成后defer将schema重置回去,防止有人重复使用同一个gdb对象造成困扰




2025-09-28 17:57:27 +08:00
7e9715ab1d
feat(contrib/drivers/mssql): mssql support LastInsertId ( #4051 )
...
修复mssqlserver的InsertAndGetId方法;插入记录如果是自增主键则返回ID
---------
Co-authored-by: 林孝义 <linxy@3755.com >
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-09-28 17:55:08 +08:00
f565a347c4
fix(database/gdb): Fix GetArray return type and add Bools method ( #4452 )
...
Change the return type of the GetArray method to Array for consistency
in data structure. Introduce a new Bools method to convert Vars to a
slice of bools, along with corresponding test cases to validate the
functionality.
```go
// 改进前
res, _ := db.Model(table).Fields("id").Array()
ids := make([]int64, 0, len(res))
for _, v := range res {
ids = append(ids, v.Int64())
}
g.Dump(ids)
// 改进后
res, _ := db.Model(table).Fields("id").Array()
ids := res.Int64s()
g.Dump(ids)
```
2025-09-28 17:08:37 +08:00
f172e61585
fix(net/ghttp): Server Domain if is empty str, bind handler pattern will add @ which is not expect #4100 ( #4101 )
...
fix https://github.com/gogf/gf/issues/4100
---------
Co-authored-by: elonnzhang <elonnzhang@tencent.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-09-26 18:49:36 +08:00
22d873f6bd
fix(gerror): Fixed serialization failure issue when gerror.Error text field contains quote symbols ( #4449 )
...
如果调用internal 下的json.Marshal时 参数如果是gerror.Error 并且 字段中带有符号" 会导致序列化失败
原因是原gerror.Error 的MarshalJson方法只对字符串做了简单的处理 如果err.Error 返回的字符串中有符号"
这个符号会在序列化的时候被认为是字符串的终止导致序列化失败
<img width="854" height="186" alt="image"
src="https://github.com/user-attachments/assets/9a1e6d72-943f-41ad-a487-8a3c0f28f9f0 "
/>
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-26 16:07:47 +08:00
b60b04e27a
fix(database/gdb): performance improvement in fields grouping when in… ( #4440 )
...
fix https://github.com/gogf/gf/issues/3906
<img width="2604" height="980" alt="image"
src="https://github.com/user-attachments/assets/50852928-7ff5-4676-8ecf-6960c184e805 "
/>
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-26 11:11:14 +08:00
d2bc5d812b
fix(cmd/gf): run AddSigHandlerShutdown cannot work well ( #4441 )
...
https://github.com/gogf/gf/issues/3752
Sending [Interrupt] on Windows is not implemented.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-23 10:58:24 +08:00
0648fd688e
fix(cmd/gf): add extra option to controller the behavior downloading … ( #4435 )
...
https://github.com/gogf/gf/issues/3938
2025-09-22 17:30:06 +08:00
d0cfcce85b
ci: Add CodeQL analysis workflow configuration ( #4436 )
2025-09-18 17:55:19 +08:00
2518d490c3
ci: Add Scorecard workflow for supply-chain security ( #4437 )
2025-09-18 17:55:03 +08:00
edc96a8c16
feat(database/gdb): Add the function of obtaining all configurations to facilitate business operations such as verification after addition. ( #4389 )
...
…ss operations such as verification after addition.
---------
Signed-off-by: sxp20008 <81209245@qq.com >
Co-authored-by: houseme <housemecn@gmail.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-09-18 16:21:02 +08:00
22427a08ad
docs(i18n/gi18n): deleting the duplicate package documents ( #4251 )
...
Avoid in https://pkg.go.dev/github.com/gogf/gf/v2/i18n/gi18n display
duplicate content.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-05 10:09:45 +08:00
41a5484620
fix(database/gredis): gredis support get raw client ( #4306 )
...
Fixes https://github.com/gogf/gf/issues/4298
Fixes https://github.com/gogf/gf/issues/2196
Fixes https://github.com/gogf/gf/issues/2135
```go
import goredis "github.com/redis/go-redis/v9"
func ExampleUsage(ctx context.Context, redis *Redis) error {
client := redis.Client()
universalClient, ok := client.(goredis.UniversalClient)
if !ok {
return errors.New("failed to assert to UniversalClient")
}
// Use universalClient for advanced operations like Pipeline
pipe := universalClient.Pipeline()
pipe.Set(ctx, "key1", "value1", 0)
pipe.Set(ctx, "key2", "value2", 0)
results, err := pipe.Exec(ctx)
if err != nil {
return err
}
// ... handle results
return nil
}
```
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-09-03 16:09:43 +08:00
325ee45a55
fix: update gf cli to v2.9.3 ( #4418 )
...
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request )
GitHub action
Co-authored-by: hailaz <hailaz@users.noreply.github.com >
2025-09-03 12:53:52 +08:00
627aa5d27f
fix: Update version to v2.9.3 ( #4417 )
...
Change all references from v2.9.2 to v2.9.3 and update the release name
accordingly.
contrib/config/kubecm/v2.9.3
contrib/rpc/grpcx/v2.9.3
contrib/trace/otlpgrpc/v2.9.3
contrib/nosql/redis/v2.9.3
contrib/drivers/dm/v2.9.3
contrib/registry/consul/v2.9.3
contrib/drivers/oracle/v2.9.3
contrib/sdk/httpclient/v2.9.3
contrib/registry/polaris/v2.9.3
contrib/registry/file/v2.9.3
contrib/drivers/pgsql/v2.9.3
contrib/registry/nacos/v2.9.3
contrib/config/consul/v2.9.3
contrib/drivers/clickhouse/v2.9.3
contrib/registry/etcd/v2.9.3
contrib/drivers/mysql/v2.9.3
contrib/config/polaris/v2.9.3
contrib/config/apollo/v2.9.3
contrib/trace/otlphttp/v2.9.3
contrib/drivers/sqlitecgo/v2.9.3
contrib/drivers/sqlite/v2.9.3
contrib/registry/zookeeper/v2.9.3
contrib/drivers/mssql/v2.9.3
v2.9.3
contrib/metric/otelmetric/v2.9.3
contrib/config/nacos/v2.9.3
2025-09-03 12:48:06 +08:00
47db44843e
fix(os/gtime): fix gtime time string handle logic ( #4409 )
...
1、gtime的StrToTime方法优化对时间字段格式兼容处理,并且针对时间越界抛出异常。
2、移除部分无用代码:
<img width="697" height="282" alt="image"
src="https://github.com/user-attachments/assets/92a88140-37c0-4ee1-aef7-c6418e9edd06 "
/>
Fixes #4394
---------
Signed-off-by: Zjmainstay <hzgdys@163.com >
Co-authored-by: hailaz <739476267@qq.com >
2025-09-03 12:19:27 +08:00
a39498f74f
fix: update gf cli to v2.9.3-rc4 ( #4416 )
...
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request )
GitHub action
Co-authored-by: hailaz <hailaz@users.noreply.github.com >
2025-09-03 11:51:14 +08:00
80b866e11c
fix: Update dependencies and exclude test data from go.mod processing ( #4415 )
...
Update dependencies and ensure that go.mod files in the test data
directory are excluded from processing during the tag creation for the
CLI tool.
contrib/trace/otlpgrpc/v2.9.3-rc4
contrib/registry/etcd/v2.9.3-rc4
contrib/drivers/mssql/v2.9.3-rc4
contrib/registry/nacos/v2.9.3-rc4
contrib/drivers/dm/v2.9.3-rc4
contrib/config/consul/v2.9.3-rc4
contrib/registry/file/v2.9.3-rc4
contrib/drivers/mysql/v2.9.3-rc4
contrib/drivers/sqlite/v2.9.3-rc4
contrib/drivers/clickhouse/v2.9.3-rc4
contrib/config/nacos/v2.9.3-rc4
contrib/registry/consul/v2.9.3-rc4
contrib/rpc/grpcx/v2.9.3-rc4
contrib/sdk/httpclient/v2.9.3-rc4
contrib/config/kubecm/v2.9.3-rc4
v2.9.3-rc4
contrib/metric/otelmetric/v2.9.3-rc4
contrib/registry/zookeeper/v2.9.3-rc4
contrib/registry/polaris/v2.9.3-rc4
contrib/config/apollo/v2.9.3-rc4
contrib/drivers/pgsql/v2.9.3-rc4
contrib/trace/otlphttp/v2.9.3-rc4
contrib/config/polaris/v2.9.3-rc4
contrib/drivers/oracle/v2.9.3-rc4
contrib/nosql/redis/v2.9.3-rc4
contrib/drivers/sqlitecgo/v2.9.3-rc4
2025-09-03 11:42:44 +08:00
2a77d3203e
fix: Improve the typeMap check logic of "gf gen dao" ( #4410 )
...
Let it can support such as "Array(UInt256)", "Array(FixedString(25))".
Now we can typeMap as:
"array(uint256)": []big.Int
"array(fixedstring(25))": [25]string
"array(fixedstring)": []string
"array": []any
Now it will first match more precise rules. So it will match
array(uint256) and array(fixedstring(25)) first. Then the
"array(fixedstring)", the last is "array"
2025-09-03 11:16:38 +08:00
3c451bef82
fix: path ./cmd/gf ( #4414 )
cmd/gf/v2.9.3-rc3
contrib/registry/nacos/v2.9.3-rc3
contrib/registry/polaris/v2.9.3-rc3
contrib/drivers/clickhouse/v2.9.3-rc3
contrib/drivers/oracle/v2.9.3-rc3
contrib/registry/file/v2.9.3-rc3
contrib/config/polaris/v2.9.3-rc3
contrib/registry/zookeeper/v2.9.3-rc3
contrib/drivers/dm/v2.9.3-rc3
contrib/registry/etcd/v2.9.3-rc3
contrib/config/nacos/v2.9.3-rc3
contrib/rpc/grpcx/v2.9.3-rc3
contrib/registry/consul/v2.9.3-rc3
contrib/nosql/redis/v2.9.3-rc3
contrib/sdk/httpclient/v2.9.3-rc3
contrib/config/kubecm/v2.9.3-rc3
contrib/drivers/mssql/v2.9.3-rc3
contrib/metric/otelmetric/v2.9.3-rc3
contrib/trace/otlpgrpc/v2.9.3-rc3
cmd/gf/internal/cmd/testdata/build/varmap/v2.9.3-rc3
v2.9.3-rc3
contrib/config/consul/v2.9.3-rc3
contrib/drivers/sqlitecgo/v2.9.3-rc3
contrib/config/apollo/v2.9.3-rc3
contrib/drivers/mysql/v2.9.3-rc3
contrib/drivers/sqlite/v2.9.3-rc3
contrib/trace/otlphttp/v2.9.3-rc3
contrib/drivers/pgsql/v2.9.3-rc3
2025-09-03 10:53:50 +08:00
5073f25691
chore: chmod +x update_version.sh ( #4413 )
contrib/drivers/mysql/v2.9.3-rc2
contrib/trace/otlphttp/v2.9.3-rc2
contrib/registry/zookeeper/v2.9.3-rc2
contrib/drivers/dm/v2.9.3-rc2
contrib/config/nacos/v2.9.3-rc2
contrib/registry/etcd/v2.9.3-rc2
contrib/rpc/grpcx/v2.9.3-rc2
contrib/registry/consul/v2.9.3-rc2
contrib/config/polaris/v2.9.3-rc2
contrib/sdk/httpclient/v2.9.3-rc2
contrib/nosql/redis/v2.9.3-rc2
contrib/config/kubecm/v2.9.3-rc2
contrib/registry/file/v2.9.3-rc2
contrib/drivers/oracle/v2.9.3-rc2
contrib/drivers/clickhouse/v2.9.3-rc2
contrib/registry/nacos/v2.9.3-rc2
contrib/drivers/mssql/v2.9.3-rc2
contrib/metric/otelmetric/v2.9.3-rc2
contrib/registry/polaris/v2.9.3-rc2
contrib/trace/otlpgrpc/v2.9.3-rc2
v2.9.3-rc2
contrib/drivers/pgsql/v2.9.3-rc2
contrib/config/consul/v2.9.3-rc2
contrib/drivers/sqlitecgo/v2.9.3-rc2
contrib/config/apollo/v2.9.3-rc2
contrib/drivers/sqlite/v2.9.3-rc2
2025-09-03 10:36:56 +08:00
40e97f1325
fix : #4269 ( #4412 )
...
fixed #4269
contrib/metric/otelmetric/v2.9.3-rc
contrib/registry/etcd/v2.9.3-rc
contrib/config/kubecm/v2.9.3-rc
contrib/drivers/oracle/v2.9.3-rc
contrib/drivers/mssql/v2.9.3-rc
contrib/trace/otlphttp/v2.9.3-rc
contrib/nosql/redis/v2.9.3-rc
contrib/drivers/sqlite/v2.9.3-rc
contrib/sdk/httpclient/v2.9.3-rc
contrib/drivers/clickhouse/v2.9.3-rc
contrib/drivers/sqlitecgo/v2.9.3-rc
contrib/config/apollo/v2.9.3-rc
contrib/registry/file/v2.9.3-rc
contrib/drivers/pgsql/v2.9.3-rc
contrib/registry/polaris/v2.9.3-rc
v2.9.3-rc
contrib/registry/nacos/v2.9.3-rc
contrib/config/nacos/v2.9.3-rc
contrib/registry/zookeeper/v2.9.3-rc
contrib/drivers/mysql/v2.9.3-rc
contrib/drivers/dm/v2.9.3-rc
contrib/config/consul/v2.9.3-rc
contrib/registry/consul/v2.9.3-rc
contrib/trace/otlpgrpc/v2.9.3-rc
contrib/rpc/grpcx/v2.9.3-rc
contrib/config/polaris/v2.9.3-rc
2025-09-02 22:49:05 +08:00
502d158bc0
fix: version 2.9.2 ( #4405 )
v2.9.2
contrib/trace/otlphttp/v2.9.2
contrib/trace/otlpgrpc/v2.9.2
contrib/config/consul/v2.9.2
contrib/drivers/oracle/v2.9.2
contrib/registry/nacos/v2.9.2
contrib/registry/file/v2.9.2
contrib/drivers/clickhouse/v2.9.2
contrib/config/polaris/v2.9.2
contrib/rpc/grpcx/v2.9.2
contrib/registry/zookeeper/v2.9.2
contrib/registry/etcd/v2.9.2
contrib/config/apollo/v2.9.2
contrib/config/nacos/v2.9.2
contrib/registry/consul/v2.9.2
contrib/nosql/redis/v2.9.2
contrib/drivers/mssql/v2.9.2
contrib/drivers/dm/v2.9.2
cmd/gf/internal/cmd/testdata/build/varmap/v2.9.2
contrib/metric/otelmetric/v2.9.2
contrib/config/kubecm/v2.9.2
contrib/drivers/sqlitecgo/v2.9.2
contrib/drivers/pgsql/v2.9.2
contrib/sdk/httpclient/v2.9.2
cmd/gf/v2.9.2
contrib/registry/polaris/v2.9.2
contrib/drivers/mysql/v2.9.2
contrib/drivers/sqlite/v2.9.2
2025-09-01 15:33:50 +08:00
f08897a114
chore(tablewriter): upgrade to v1.0.9 and refactor table rendering logic ( #4352 )
...
### What’s Changed
* Upgraded `github.com/olekukonko/tablewriter` from previous version to
**v1.0.9**.
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-09-01 12:20:22 +08:00
b6181e4bde
fix: report coverage on the latest go version ( #4398 )
2025-08-29 16:10:37 +08:00
f8cdeae2d7
fix(net/goai): fix g.Meta is passed as parameters of a request ( #4397 )
...
fix https://github.com/gogf/gf/issues/4247
<img width="2860" height="2308" alt="image"
src="https://github.com/user-attachments/assets/755cfe8a-b3ae-4c5a-ba04-68cc1b188ca7 "
/>
2025-08-29 15:30:28 +08:00
bea060af4c
feat: update linter config and deprecation notice ( #4399 )
...
- Add `gofmt` rewrite-rules to `.golangci.yml` for code formatting
consistency.
- Update deprecation comment in `gpage.go` to specify removal in version
3.0.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-29 15:26:56 +08:00
94cc233325
fix: disable specific staticcheck rules and update lint config ( #4396 )
...
fix: disable specific staticcheck rules and update lint config
- Disabled staticcheck rules SA1029, SA1019, S1000, and related checks
in `.golangci.yml` to filter out unwanted linter errors.
- Updated staticcheck checks list for more precise linting control.
- Clarified configuration for easier maintenance and future updates.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-29 10:32:30 +08:00
71743e6903
chore: add OpenSSF Scorecard for README.md ( #3696 )
...
Why is this needed:
The OpenSSF Scorecard improves open-source project's security by
providing automated, transparent assessments of their security
practices. It will help you identify vulnerabilities, adhere to best
practices, and continuously enhance your security posture, increasing
user trust and reducing the risk of security exploits.
I'll be the one to create the PR to add the scorecard GitHub action, and
I will also work with you to remediate the identified vulnerabilities.
I'll go through each [scorecard
check](https://github.com/ossf/scorecard/blob/main/docs/checks.md ) to
see where the score has dropped and how it can be improved.
Integrate [scorecard](https://github.com/ossf/scorecard ) in CI, and
display a Scorecard badge on the gogf repository
You also need to manually create a project, refer to
https://bestpractices.coreinfrastructure.org/en/projects
Manually create an gogf organization to report results, please see
https://sonarcloud.io/explore/projects?sort=-analysis_date
Signed-off-by: fsl <1171313930@qq.com >
2025-08-29 10:28:29 +08:00
f9ec3b19f7
fix(net/ghttp): wrong in-tag param parse for query param ( #4227 ) ( #4228 )
...
Fixed issue #4227 and add unit test
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-08-29 09:46:48 +08:00