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
7180d895ea
Update util/gconv/gconv_z_unit_scan_test.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-06-20 18:17:40 +08:00
b73e2047db
fix(gconv): fix scanning functionality for deep slice types
2025-05-06 13:37:45 +08:00
1534abdb05
feat(util/gpage): marked deprecated ( #4230 )
2025-04-02 19:56:28 +08:00
bc1e1019c5
refract(util/gconv): change Converter interface definition for more convenient usage ( #4202 )
2025-03-14 18:23:07 +08:00
f8331bad6e
feat(net/ghttp): add Request.GetMetaTag to retrieve specific meta tag value ( #4185 )
2025-03-09 11:17:41 +08:00
a8a055f122
fix(util/gvalid): lots of memory consumed when required validation on big binary field ( #4097 )
2025-03-07 13:52:12 +08:00
dfe088f5cd
refactor(util/gconv): add Converter feature for more flexable and extensible type converting ( #4107 )
2025-03-06 23:04:26 +08:00
f4074cd815
fix(net/gclient): remove default discovery for gclient when Discovery feature enabled ( #4174 )
2025-03-03 16:43:21 +08:00
63cb3285f8
fix(net/ghttp): update response message handling in MiddlewareHandlerResponse ( #4162 )
2025-02-27 11:59:26 +08:00
6bd15b0796
merge master
2025-01-22 19:17:16 +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
9ce2409659
fix(util/gpage): html.EscapeString for pagination HTML generation and URL parsing ( #4079 )
2024-12-26 16:21:30 +08:00
a5c8b966e2
feat(util/gconv): add basic types conversion support for function Scan ( #3991 )
2024-12-18 10:41:09 +08:00
00e2f6b5dc
chore: improve golangci-lint.yml, upgrade dependencies, and optimize code and comments ( #4025 )
2024-12-11 10:14:12 +08:00
b0b84a3937
ci(gci/import): improve golangci.yml and add gci linter ( #4010 )
2024-12-07 14:17:33 +08:00
42eae41599
fix(util/gutil): code scanning alert no. 17: Potentially unsafe quoting ( #3993 )
2024-12-01 23:44:48 +08:00
5aa7504bb2
fix(util/gpage): code scanning alert no. 9: Potentially unsafe quoting ( #3992 )
2024-12-01 23:43:44 +08:00
ec6e091882
chore: fix some function names in comment ( #3967 )
2024-12-01 11:29:09 +08:00
16d73b5bdf
fix(utils/gvalid): missing pkg path for enums pointer ( #3983 )
2024-11-29 18:25:13 +08:00
ffa6081471
fix(util/gconv): fix missing minus in string to int64 conversion ( #3920 )
2024-11-13 23:25:24 +08:00
d1872f17f7
fix(util/gconv): assigned the same value to struct field and its same name field in embedded struct failed ( #3905 )
2024-11-06 21:12:01 +08:00
555bb3fa6b
feat(net/goai): enhance openapi doc with responses and examples ( #3859 )
2024-10-21 21:16:45 +08:00
7dd38a1700
feat(database/gdb): add Raw support for Fields function of gdb.Model ( #3873 )
2024-10-21 09:22:31 +08:00
b1d875a31f
fix(util/gconv): incorrect fuzzy converting logic ( #3874 )
2024-10-21 09:16:50 +08:00
5288b70567
fix(util/gconv): one parameter to same tag in multiple struct attributes mapping failed ( #3822 )
2024-10-14 21:34:39 +08:00
2301de6e8c
fix(util/gutil): invalid empty parameter value check for function GetOrDefaultAny ( #3844 )
2024-10-08 13:05:59 +08:00
5aa321dbde
fix(util/gconv): unstable converting when there is an external attribute with the same name as the internal structure ( #3799 )
2024-09-25 19:22:15 +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
e15b543a5b
fix(util/gvalid): retrive empty slice parameter in custom validation rule function failed ( #3795 )
2024-09-23 19:59:48 +08:00
8a1c97f518
fix(util/gconv): cached field indexes append issue caused incorrect field converting ( #3790 )
2024-09-23 19:05:32 +08:00
d8e3e9d713
fix(utils/utils_str): recognize '+' as a valid numeric sign ( #3778 )
2024-09-23 16:45:55 +08:00
777c2e7117
ci: fix mssql docker service failed in ci ( #3792 )
2024-09-23 11:50:48 +08:00
0e471eab38
fix(util/gconv): #3764 fix bool converting issue ( #3765 )
2024-09-12 21:59:38 +08:00
1b4ebc0812
perf(util/gconv): add cache logic to enhance performance ( #3673 )
2024-09-09 16:17:01 +08:00
448df14860
fix(util/gconv): #3731 map type name mismatch in switch case statement ( #3732 )
2024-09-09 14:54:40 +08:00
59a775aad4
util/gvalid: add 171 number support for virtual phone number validation ( #3622 )
2024-06-04 20:36:28 +08:00
737da954a0
util/gconv: remove unnecessary logic for function doScanList ( #3588 )
2024-05-20 19:42:51 +08:00
a9a0785252
util/gconv: refactor code unit testing ( #3591 )
2024-05-20 19:40:30 +08:00
94c7185826
util/gvalid: fix slice enums verification failed ( #3566 )
2024-05-07 20:36:55 +08:00
1013df1627
enhance: improve performance of struct converting for package gconv ( #3412 )
2024-04-23 21:30:06 +08:00
91f449dff8
feat: add new rule required-if-all for package gvalid ( #3455 )
2024-04-11 19:45:09 +08:00
4c6b146627
feat: add Scan method for incremental key retrieval in gredis ( #3451 )
2024-04-11 15:37:22 +08:00
d7a0482146
fix : #3465 If the value of a string is null, the value of string is nil after the string is converted to []string ( #3468 )
2024-04-10 20:18:03 +08:00
83ba887df7
fix : #3449 accept slice parameter as json.RawMessage for http request ( #3452 )
2024-04-07 14:09:52 +08:00
911f1cb1de
enhance: use map iter to iterate the map instead of map keys and values ( #3457 )
2024-04-07 10:00:04 +08:00
f039393b2b
fix: map converting in loop logic of validation for package gvalid ( #3423 )
2024-04-01 19:23:12 +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
1c12f3a30d
fix: http superfluous response.WriteHeader call in some scenario ( #3428 )
2024-03-28 22:08:54 +08:00
607f079b23
fix: cache value assertion panic if the cache adapter is not in-memory for soft time feature of package gdb; improve converting performance for gconv.Scan ( #3351 )
2024-03-07 11:36:42 +08:00