2d5fcd73cb
chore: upgrade dependencies to latest versions and fix security vulne… ( #4237 )
...
This PR includes the following updates and fixes:
- **Dependency upgrades**: Updated all dependencies in `go.mod` to their
latest versions to ensure compatibility and leverage the latest features
and fixes.
- **Security fixes**:
- Resolved known vulnerabilities in `golang.org/x/net` by upgrading to
the latest secure version.
- Addressed security issues in `golang.org/x/crypto` by upgrading to the
latest secure version.
These changes improve the overall security and stability of the project.
Please review the changes and ensure compatibility with the updated
dependencies.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-08-22 15:29:16 +08:00
7ffdff37e4
chore: upgrade golangci-lint configuration and optimize codebase ( #4236 )
...
This PR includes the following changes:
- **Upgrade `.golangci.yml`**: Updated the configuration file to align
with the latest golangci-lint version, ensuring compatibility and
leveraging new features.
- **Refactor GitHub Action workflow**: Modified `golangci-lint.yml` in
the GitHub Actions workflow to reflect the updated configuration and
improve CI performance.
- **Codebase optimization**: Refactored code to address issues and
warnings raised by the updated golangci-lint rules, including:
- Improved function length and complexity.
- Enhanced error handling and variable naming conventions.
- Fixed minor issues such as unused imports and formatting
inconsistencies.
These changes aim to maintain code quality, ensure compatibility with
the latest tools, and improve overall maintainability.
2025-08-22 13:29:09 +08:00
5fa656d1cc
fix(os/gtime): add handling for nil time pointers to avoid causing panic ( #4323 )
...
from https://github.com/gogf/gf/pull/4322
Fixes https://github.com/gogf/gf/issues/4307
2025-06-24 15:53:47 +08:00
f8331bad6e
feat(net/ghttp): add Request.GetMetaTag to retrieve specific meta tag value ( #4185 )
2025-03-09 11:17:41 +08:00
63cb3285f8
fix(net/ghttp): update response message handling in MiddlewareHandlerResponse ( #4162 )
2025-02-27 11:59:26 +08:00
0eb229a887
feat(os/glog): add default time format 2006-01-02T15:04:05.000Z07:00 ( #4134 )
2025-02-11 15:59:27 +08:00
6bd15b0796
merge master
2025-01-22 19:17:16 +08:00
3f24b4da2e
feat(os/gcmd): add default value display for an argument ( #4083 )
2025-01-13 09:26:59 +08:00
fc9093a1aa
feat(cmd/gf): add ShardingPattern option for command gf gen dao to support generating dao files sharding tables ( #4081 )
2024-12-26 23:21:03 +08:00
233295be07
fix(os/gview): search file faild from resource manager of package gres ( #4024 )
2024-12-18 10:39:01 +08:00
00e2f6b5dc
chore: improve golangci-lint.yml, upgrade dependencies, and optimize code and comments ( #4025 )
2024-12-11 10:14:12 +08:00
80e73da416
feat(errors/gerror): add As support ( #4002 )
2024-12-09 23:11:56 +08:00
b0b84a3937
ci(gci/import): improve golangci.yml and add gci linter ( #4010 )
2024-12-07 14:17:33 +08:00
b8142bf1fc
feat(os/gsession): add RegenerateId/MustRegenerateId support ( #4012 )
2024-12-06 14:16:03 +08:00
c0f2ef7348
feat(gctx): rename and remove gctx functions to prevent ambiguity ( #3892 )
2024-12-05 14:47:39 +08:00
0d1aed0741
fix(os/gcache): function Remove returns value not *gvar.Var as previous version ( #3936 )
2024-11-19 23:30:29 +08:00
9cc1cf1b53
fix(cmd/gf): remove dir after process done if given build file parameter is not a file but a dir name ( #3908 )
2024-11-11 21:32:58 +08:00
e3e5c89ba7
fix(os/gcmd): cannot retrieve all args if no subcommand defined for a root command ( #3850 )
2024-10-10 09:17:34 +08:00
91884e7c93
fix(database/gdb): remove support of Array/Value/Count operations for result that has multiple record fields ( #3839 )
2024-10-08 20:42:06 +08:00
7cbc9e8533
test(os/gcache): fix unit testing occasionally failed due to too short expration duration set ( #3842 )
2024-10-08 13:06:11 +08:00
459c8ce84e
feat(os/gfsnotify): add recursive watching for created subfolders and sub-files under folders that already watched ( #3830 )
2024-09-30 11:24:27 +08:00
9589384b36
refactor(encoding/gjson): change data parameter from type any to []byte ( #3542 )
2024-09-28 18:10:00 +08:00
cf742233e8
refactor(net/gudp): improve implements ( #3491 )
2024-09-28 18:08:46 +08:00
1c97b7a982
fix(os/gcache): memory leak for LRU when adding operations more faster than deleting ( #3823 )
2024-09-28 18:07:11 +08:00
ea09457d84
fix(os/gcmd): argument index calculating error in multilevel command ( #3807 )
2024-09-28 18:02:34 +08:00
9af8393758
fix(net/goai): change default value of RequestBody.Required from true to false, add required tag support for RequestBody ( #3796 )
2024-09-24 11:51:53 +08:00
d8b06d056e
fix(os/gcache): a little memory leak for removed timestamp key ( #3779 )
2024-09-14 11:05:47 +08:00
a6c361dcf7
fix(os/gtime): fix gtime.Value() when time only, add time only example ( #3714 )
2024-08-14 21:00:39 +08:00
8824b8b0fe
os/gcron: add graceful shutdown support ( #3625 )
2024-06-25 21:13:51 +08:00
4d916ae73e
os/gres: fix #3611 add custom prefix / support for resource packing ( #3621 )
2024-06-04 20:38:59 +08:00
23df83cb0b
database/gdb: fix deadlock when orm operations perform in cache function from gcache ( #3585 )
2024-05-22 21:14:43 +08:00
2e471662f4
os/gcfg: fix file searching issue always returning the configuration file of pwd ( #3592 )
2024-05-22 21:14:16 +08:00
21c83670d6
os/gtime: fixed gtime ci fail ( #3596 )
2024-05-22 20:45:39 +08:00
1455440efa
os/gcfg: fix gcfg adaptfile dogetfilepath ( #3587 )
2024-05-20 20:23:38 +08:00
0765741d99
os/gtime: fix #3558 time zone issues ( #3561 )
2024-05-10 17:44:45 +08:00
3cdd9ef36e
cmd/gf: fix command gf gen dao for fieldMapping feature ( #3549 )
2024-04-29 19:22:02 +08:00
cc98e5759c
fix : #3200 empty content in glog handler after structure logging feature supported ( #3475 )
2024-04-25 19:13:50 +08:00
f48ca959f7
chore: fix function names in comment ( #3536 )
2024-04-24 19:14:42 +08:00
adc94fd97a
fix: uint testing case for signal feature of package gproc occasionally failed ( #3529 )
2024-04-23 21:30:33 +08:00
ae58dc846a
fix: missing arguments on Windows platform for package gproc ( #3482 )
2024-04-15 09:59:35 +08:00
505fc25a64
fix: fsnotify watcher panics when closing ( #3399 )
2024-04-07 14:12:03 +08:00
1b7aea0ced
feat: add metrics option and prometheus handler wraps ( #3445 )
2024-04-07 09:57:13 +08:00
e0a2645f4a
fix : #3390 name&shor tag mapping failed to command input object for package gcmd ( #3429 )
2024-04-01 19:07:08 +08:00
6df0a9ca66
fix: the cron job with precise second time pattern might be executed twice in the same time ( #3437 )
2024-03-28 22:09:11 +08:00
8669512f42
feat: add metric feature support in goframe ( #3138 )
2024-03-24 21:18:30 +08:00
040118b7c6
fix : #3370 fixed process parameter parsing failed on Windows for package gproc ( #3386 )
2024-03-20 19:58:42 +08:00
3a8f246569
fix: unit test error in PgSQL and SQLite; Unified t.Assert(err, nil) to t.AssertNil(err) ( #3356 )
2024-03-12 20:05:03 +08:00
849b104c31
enhance: gproc.signal enhance #3325 ( #3326 )
2024-03-04 20:10:05 +08:00
a1a9465e52
add ExampleCache_Clear ( #3310 )
2024-02-27 19:42:58 +08:00
5307f0742e
add # for cron pattern that can ignore seconds, which makes the cron pattern running in minimum minute like linux crontab pattern ( #3306 )
2024-02-07 15:38:24 +08:00