New
GoFrame Release v2.10.0
What's Changed
Feature
- feat: update linter config and deprecation notice by @houseme in https://github.com/gogf/gf/pull/4399
- feat(ci): upgrade workflow checkout version v5 by @houseme in https://github.com/gogf/gf/pull/4381
- feat(cmd/gendao): add wildcard pattern support for tables configuration by @lingcoder in https://github.com/gogf/gf/pull/4632
- feat(cmd/gf): add broad matching to gf gen dao's tableEx attribute. by @joy999 in https://github.com/gogf/gf/pull/4453
- feat(cmd/gf): Add support for the Loongson architecture (loong64) by @LanceAdd in https://github.com/gogf/gf/pull/4467
- feat(cmd/gf): improve and enhance gen ctrl by @oldme-git in https://github.com/gogf/gf/pull/4325
- feat(cmd/gf): improve gf run watching by @hailaz in https://github.com/gogf/gf/pull/4573
- feat(cmd/gf): init update by @hailaz in https://github.com/gogf/gf/pull/4572
- feat(container): Add NewXXXWithChecker function for gmap/gset/gtree by @LanceAdd in https://github.com/gogf/gf/pull/4610
- feat(container/garray): add TArray by @joy999 in https://github.com/gogf/gf/pull/4466
- feat(container/garray): enhance generic array implements by @joy999 in https://github.com/gogf/gf/pull/4482
- feat(container/garray): Sorted T Array by @joy999 in https://github.com/gogf/gf/pull/4470
- feat(container/glist): add generic list feature by @joy999 in https://github.com/gogf/gf/pull/4483
- feat(container/gmap): add generic list map feature by @joy999 in https://github.com/gogf/gf/pull/4520
- feat(container/gmap): add generic map feature by @joy999 in https://github.com/gogf/gf/pull/4484
- feat(container/gpool): add generic pool feature by @joy999 in https://github.com/gogf/gf/pull/4493
- feat(container/gqueue): add generic queuefeature by @joy999 in https://github.com/gogf/gf/pull/4497
- feat(container/gring): add generic ring feature by @joy999 in https://github.com/gogf/gf/pull/4496
- feat(container/gset): add generic set feature by @joy999 in https://github.com/gogf/gf/pull/4492
- feat(container/gtree): add generic tree feature by @joy999 in https://github.com/gogf/gf/pull/4522
- feat(contrib/drivers): more database drivers by @gqcn in https://github.com/gogf/gf/pull/4553
- feat(contrib/drivers/dm): add
Replace/InsertIgnoresupport and field type/length enhancements for dm database by @gqcn in https://github.com/gogf/gf/pull/4541 - feat(contrib/drivers/dm): add
WherePrisupport by @tiger1103 in https://github.com/gogf/gf/pull/4157 - feat(contrib/drivers/dm&pgsql&mssql&oracle): add Replace/LastInsertId features support for dm/pgsql/mssql/oracle by @gqcn in https://github.com/gogf/gf/pull/4547
- feat(contrib/drivers/gaussdb): add gaussdb driver support by @gqcn in https://github.com/gogf/gf/pull/4563
- feat(contrib/drivers/mssql): mssql support LastInsertId by @lxy1151 in https://github.com/gogf/gf/pull/4051
- feat(contrib/drivers/pgsql): add array type numeric[] and decimal[] converting to Go []float64 support #4457 by @The-night-elves in https://github.com/gogf/gf/pull/4511
- feat(contrib/drivers/pgsql): more field types converting support by @ivothgle in https://github.com/gogf/gf/pull/3737
- feat(contrib/registry): update nacos sdk to 2.3.5 by @yuluo-yx in https://github.com/gogf/gf/pull/4628
- feat(contrib/registry/nacos): add SetDefaultEndpoint and SetDefaultMetadata methods by @wangle201210 in https://github.com/gogf/gf/pull/4608
- feat(crypto): add gsha256 by @joy999 in https://github.com/gogf/gf/pull/4558
- feat(crypto/grsa): Add RSA encryption and decryption function by @LanceAdd in https://github.com/gogf/gf/pull/4571
- feat(database/gdb): add MaxIdleConnTime configuration for SetConnMaxIdleTime support by @lingcoder in https://github.com/gogf/gf/pull/4625
- feat(database/gdb): Add the function of obtaining all configurations to facilitate business operations such as verification after addition. by @sxp20008 in https://github.com/gogf/gf/pull/4389
- feat(database/gdb): Optimize SoftTime feature by @LanceAdd in https://github.com/gogf/gf/pull/4559
- feat(gdb): Allow to set table field metadata and allow to generate table fields registration code when generating dao by @LanceAdd in https://github.com/gogf/gf/pull/4460
- feat(gdb/gdb_model_lock.go): gdb support lock update skip locked by @smzgl in https://github.com/gogf/gf/pull/4607
- feat(instance): migrate instance containers to type-safe generics by @LanceAdd in https://github.com/gogf/gf/pull/4617
- feat(net/ghttp): enhance GetHeader method to support default values by @hailaz in https://github.com/gogf/gf/pull/4210
- feat(os/gcfg): Add file watcher with custom callback support by @LanceAdd in https://github.com/gogf/gf/pull/4446
- feat(os/gcfg): add Loader with automatic struct binding and config watching (like Spring Boot @ConfigurationProperties) by @LanceAdd in https://github.com/gogf/gf/pull/4575
- feat(os/gfile): add MatchGlob function with globstar support (#4570) by @hailaz in https://github.com/gogf/gf/pull/4574
- feat(util/gconv): Add OmitEmpty and OmitNil options to Scan function by @LanceAdd in https://github.com/gogf/gf/pull/4584
- feat(util/gpage): marked deprecated by @gqcn in https://github.com/gogf/gf/pull/4230
- feat(util/gvalid): add more rules: alpha,alpha-dash,alpha-num,lowercase,numeric,uppercase by @yuluo-yx in https://github.com/gogf/gf/pull/4601
Enhancement
- perf(net/gclient): optimize default http.Transport connection pool configuration by @lxzan in https://github.com/gogf/gf/pull/4390
- refactor: interface{} to any and reflect.Ptr to reflect.Pointer by @hailaz in https://github.com/gogf/gf/pull/4395
- refactor(cmd/gf): Optimize run command to reload only on actual file changes by @windvalley in https://github.com/gogf/gf/pull/4476
- refactor(container): add default nil checker, rename RegisterNilChecker to SetNilChecker, migrate instance containers to type-safe generics by @LanceAdd in https://github.com/gogf/gf/pull/4630
- refactor(contrib/clickhouse): optimization clickhouse by @wanghaolong613 in https://github.com/gogf/gf/pull/4499
- refactor(database/gdb): add quote for FieldsPrefix by @hicolin in https://github.com/gogf/gf/pull/4485
- refactor(database/gdb): simplify order and group by alias quoting by @lingcoder in https://github.com/gogf/gf/pull/4555
- refactor(encoding/gjson): enhance auto type checks when loading data without type specified by @gqcn in https://github.com/gogf/gf/pull/4637
- refract(gerror): add ITextArgs interface and its implements, mainly for i18n that needs text and args separately by @gqcn in https://github.com/gogf/gf/pull/4597
Bug Fixes
- fix: #4269 by @hailaz in https://github.com/gogf/gf/pull/4412
- fix: disable specific staticcheck rules and update lint config by @houseme in https://github.com/gogf/gf/pull/4396
- fix: Improve the typeMap check logic of "gf gen dao" by @joy999 in https://github.com/gogf/gf/pull/4410
- fix: path ./cmd/gf by @hailaz in https://github.com/gogf/gf/pull/4414
- fix: report coverage on the latest go version by @hailaz in https://github.com/gogf/gf/pull/4398
- fix: revert #4388 by @hailaz in https://github.com/gogf/gf/pull/4392
- fix: spacing in min value validation message by @houseme in https://github.com/gogf/gf/pull/4388
- fix: the use of the deprecated variable {format} in the file util/gval… by @shubo83 in https://github.com/gogf/gf/pull/4258
- fix: update copyright notice in multiple files to specify correct file reference by @hailaz in https://github.com/gogf/gf/pull/4518
- fix: Update dependencies and exclude test data from go.mod processing by @hailaz in https://github.com/gogf/gf/pull/4415
- fix: update dependencies to version v2.9.1 for various contrib modules and drivers by @hailaz in https://github.com/gogf/gf/pull/4386
- fix:(cmd/gf): matching for table ex fix bug by @joy999 in https://github.com/gogf/gf/pull/4458
- fix(ci): add cache cleaning step to prevent 'no space left on device' errors by @hailaz in https://github.com/gogf/gf/pull/4513
- fix(ci): change base image from expired ubuntu-22.04 to ubuntu-latest by @gqcn in https://github.com/gogf/gf/pull/4273
- fix(ci): Free Disk Space by @hailaz in https://github.com/gogf/gf/pull/4529
- fix(ci): update script permissions and add docker cleanup functionality by @hailaz in https://github.com/gogf/gf/pull/4523
- fix(cmd/gendao): fix overlapping shardingPattern matching issue by @lingcoder in https://github.com/gogf/gf/pull/4631
- fix(cmd/gf): "unknown time zone" when using "gf gen dao" for clickhouse on windows platform by @joy999 in https://github.com/gogf/gf/pull/4368
- fix(cmd/gf): add extra option to controller the behavior downloading … by @wanghaolong613 in https://github.com/gogf/gf/pull/4435
- fix(cmd/gf): fix gen sharding dao in multiple shardingPattern tables … by @fainc in https://github.com/gogf/gf/pull/4379
- fix(cmd/gf): fix genservice losing versioned import paths (#4242) by @lingcoder in https://github.com/gogf/gf/pull/4638
- fix(cmd/gf): fix gf env and gf build --dumpEnv command error by @lingcoder in https://github.com/gogf/gf/pull/4635
- fix(cmd/gf): fix gf gen dao with removeFieldPrefix by @zhang5788 in https://github.com/gogf/gf/pull/4243
- fix(cmd/gf): fix gf gen enums output path error when using relative path by @lingcoder in https://github.com/gogf/gf/pull/4636
- fix(cmd/gf): Fixed an issue where formatting caused import errors in gf init by @hailaz in https://github.com/gogf/gf/pull/4598
Other
- build(contrib): upgrade nacos registry&config by @lingcoder in https://github.com/gogf/gf/pull/4473
- chore: add OpenSSF Scorecard for README.md by @fengshunli in https://github.com/gogf/gf/pull/3696
- chore: bump golang.org/x/tools to v0.34.0 for Go 1.25 compatibility by @chenrui333 in https://github.com/gogf/gf/pull/4313
- chore: chmod +x update_version.sh by @hailaz in https://github.com/gogf/gf/pull/4413
- chore: translte zh comment to en by @yuluo-yx in https://github.com/gogf/gf/pull/4591
- chore: upgrade dependencies to latest versions and fix security vulne… by @houseme in https://github.com/gogf/gf/pull/4237
- chore: upgrade golangci-lint configuration and optimize codebase by @houseme in https://github.com/gogf/gf/pull/4236
- chore(contrib/nosql/redis): bump github.com/redis/go-redis/v9 from 9.7.0 to 9.12.1 in /contrib/nosql/redis by @dependabot[bot] in https://github.com/gogf/gf/pull/4215
- chore(deps): Update dependent versions to enhance compatibility and security by @hailaz in https://github.com/gogf/gf/pull/4380
- chore(polaris): Bump
github.com/polarismesh/polaris-gofrom v1.5.8 to v1.6.1 by @houseme in https://github.com/gogf/gf/pull/4241 - chore(tablewriter): upgrade to v1.0.9 and refactor table rendering logic by @zishang520 in https://github.com/gogf/gf/pull/4352
- ci: Add CodeQL analysis workflow configuration by @hailaz in https://github.com/gogf/gf/pull/4436
- ci: Add Scorecard workflow for supply-chain security by @hailaz in https://github.com/gogf/gf/pull/4437
- ci(docker-services): change chinese printing message to english by @gqcn in https://github.com/gogf/gf/pull/4599
- ci(release): disable go module caching in release workflow by @Copilot in https://github.com/gogf/gf/pull/4539
- docs: update Chinese documentation and add README.zh_CN.MD by @hailaz in https://github.com/gogf/gf/pull/4534
- docs(i18n/gi18n): deleting the duplicate package documents by @qiulaidongfeng in https://github.com/gogf/gf/pull/4251
- test(cmd/gf): add unit tests for genenums package by @lingcoder in https://github.com/gogf/gf/pull/4641
- test(cmd/gf): add unit tests for geninit package by @lingcoder in https://github.com/gogf/gf/pull/4640
- test(cmd/gf): add unit tests for pack command by @lingcoder in https://github.com/gogf/gf/pull/4642
- test(cmd/gf): enhance integration tests for gen pb command by @lingcoder in https://github.com/gogf/gf/pull/4644
- test(cmd/gf): enhance integration tests for gen service command by @lingcoder in https://github.com/gogf/gf/pull/4645
- test(cmd/gf): enhance unit tests for fix command by @lingcoder in https://github.com/gogf/gf/pull/4643
- test(errors/gcode,gerror): add unit tests for error handling interfaces and methods by @hailaz in https://github.com/gogf/gf/pull/4586
New Contributors
- @chenrui333 made their first contribution in https://github.com/gogf/gf/pull/4313
- @wanghaolong613 made their first contribution in https://github.com/gogf/gf/pull/4374
- @minimAluminiumalism made their first contribution in https://github.com/gogf/gf/pull/4334
- @lxzan made their first contribution in https://github.com/gogf/gf/pull/4390
- @github-actions[bot] made their first contribution in https://github.com/gogf/gf/pull/4416
- @Zjmainstay made their first contribution in https://github.com/gogf/gf/pull/4409
- @YunzhiYike made their first contribution in https://github.com/gogf/gf/pull/4306
- @qiulaidongfeng made their first contribution in https://github.com/gogf/gf/pull/4251
- @sxp20008 made their first contribution in https://github.com/gogf/gf/pull/4389
- @chen-mou made their first contribution in https://github.com/gogf/gf/pull/4449
- @elonnzhang made their first contribution in https://github.com/gogf/gf/pull/4101
- @lxy1151 made their first contribution in https://github.com/gogf/gf/pull/4051
- @973212983 made their first contribution in https://github.com/gogf/gf/pull/4510
- @The-night-elves made their first contribution in https://github.com/gogf/gf/pull/4511
- @xiaoyi510 made their first contribution in https://github.com/gogf/gf/pull/4512
- @xiongchao123 made their first contribution in https://github.com/gogf/gf/pull/4509
- @iamcc30 made their first contribution in https://github.com/gogf/gf/pull/4375
- @hicolin made their first contribution in https://github.com/gogf/gf/pull/4485
- @aitimate made their first contribution in https://github.com/gogf/gf/pull/4400
- @ljluestc made their first contribution in https://github.com/gogf/gf/pull/4521
- @li-zheng-hao made their first contribution in https://github.com/gogf/gf/pull/4170
- @zhang5788 made their first contribution in https://github.com/gogf/gf/pull/4243
- @DustScribe made their first contribution in https://github.com/gogf/gf/pull/4268
- @smzgl made their first contribution in https://github.com/gogf/gf/pull/4577
- @yuluo-yx made their first contribution in https://github.com/gogf/gf/pull/4591
- @liov made their first contribution in https://github.com/gogf/gf/pull/4600
- @shubo83 made their first contribution in https://github.com/gogf/gf/pull/4258
Full Changelog: https://github.com/gogf/gf/compare/v2.9.0...v2.10.0