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
b0b84a3937
ci(gci/import): improve golangci.yml and add gci linter ( #4010 )
2024-12-07 14:17:33 +08:00
ec6e091882
chore: fix some function names in comment ( #3967 )
2024-12-01 11:29:09 +08:00
7a6889817f
feat(encoding/ghtml): add parameter validation for function SpecialCharsMapOrStruct ( #3841 )
2024-10-08 20:46:06 +08:00
9589384b36
refactor(encoding/gjson): change data parameter from type any to []byte ( #3542 )
2024-09-28 18:10:00 +08:00
e4669387b5
fix(encoding/gxml): XML special character encoding error ( #3740 )
2024-09-13 10:37:15 +08:00
adb813fbad
enhance: upgrade version of dependencies ( #3494 )
2024-04-18 20:02:27 +08:00
42e3c5f39a
fix #3253 ( #3255 )
2024-01-11 22:14:22 +08:00
eb11061bd2
fix: gjson encode to string expect inconformity(issue 2520) ( #2928 )
2023-09-04 21:19:22 +08:00
53e5a04073
change minimum golang version from v1.15 to v1.18 ( #2820 )
2023-08-01 21:15:28 +08:00
46f3196297
Update gcompress_zip.go ( #2694 )
...
Fix index out of range when zipfile has dir __MAXOSX
2023-06-12 20:46:31 +08:00
e816ab05de
refactor: code optimization ( #2667 )
2023-05-25 21:58:11 +08:00
5083174a92
fix goreport for gofmt ( #2523 )
2023-03-17 17:54:14 +08:00
117fc6eda2
fix issue #2339 ( #2433 )
2023-02-08 19:08:10 +08:00
2b90bcfab6
fix issue #2050 : add -t option support for command gf docker to compatable with older version ( #2423 )
2023-02-07 17:41:43 +08:00
5884a0e05f
fix issue #2381 ( #2382 )
...
* fix issue #2381
* up
* up
2023-01-03 11:00:23 +08:00
4f4109cdb6
fix typo for comments ( #2268 )
...
* Modify comment syntax error
* Modify comment syntax error
2022-11-07 17:55:49 +08:00
1793bf0863
add golangci feature to guarantee codes quality ( #2229 )
2022-11-01 20:12:21 +08:00
2be9bb970b
add function ZipPathContent for package gcompress ( #2179 )
...
add function ZipPathContent for package gcompress
2022-10-09 19:19:10 +08:00
f1455ad37a
fix issue #2172 ( #2173 )
...
* version updates
* fix issue #2172
2022-10-08 11:46:38 +08:00
141ca62c6d
feature/v2.2.0 ( #2154 )
2022-09-26 22:11:13 +08:00
faf09c586c
add GzipPathWriter for package gcompress ( #2116 )
...
* add GzipPathWriter for package gcompress
* UT case updates for package package gclient
2022-09-08 17:32:21 +08:00
82a3391937
fix precision lost of int64 for package gcfg ( #2044 )
...
fix: gcfg lose precision
Co-authored-by: qinyuguang <qinyuguang@meican.com >
2022-08-03 21:50:17 +08:00
0e2a0075ef
Use gconv.String instead of cast.ToString.
2022-05-12 22:59:08 +08:00
4902eb73b7
gfmt file
2022-05-12 21:31:54 +08:00
be9377a496
add test cases
2022-05-12 17:05:02 +08:00
d5d56e51d7
增加用例覆盖率
2022-05-12 09:39:15 +08:00
da7eac03ad
delete package comment
2022-05-12 00:25:30 +08:00
060f67c2c8
change decode/encode lib for properties to magiconair
2022-05-12 00:23:46 +08:00
59023f9f09
delete empty line after package comment.
2022-05-11 11:08:05 +08:00
17e48ba9f2
Add test case for func tojson
2022-05-11 01:02:36 +08:00
e60b42470e
[MOD] User viper as the properties file decoding lib.
2022-05-11 00:48:22 +08:00
7198eb3b66
add support for .properties configuration file
2022-05-08 00:23:24 +08:00
cfd2636f13
Merge pull request #1795 from huangqian1985/master
...
add ExampleEncode function
2022-05-05 22:18:20 +08:00
3628b1e9d2
add ExampleEncode function
2022-05-02 17:29:19 +08:00
ac5d399906
improve package guid
2022-04-19 16:18:49 +08:00
9ff5f39701
fix issue #1747
2022-04-12 23:30:18 +08:00
d5e5a48170
fix issue #1747
2022-04-11 20:49:33 +08:00
1e141d9f64
improve package gjson/ghttp
2022-04-07 21:26:39 +08:00
bceb5fc7de
rename gdebug.TestData* -> gtest.Data*; add UT case for http server
2022-03-17 16:58:04 +08:00
b3e66d8023
improve package gjson
2022-03-15 21:45:47 +08:00
d8d9996464
fix issue #1662
2022-03-11 10:24:42 +08:00
546b6b1724
t.Assert(err, nil) -> t.AssertNil(err)
2022-03-10 11:36:40 +08:00
30be5c5e49
Improving gjson Code Coverage And Fix
2022-02-26 21:26:30 +08:00
3a803ac39f
fix
2022-02-24 21:41:39 +08:00
f54d0a339c
Improving gjson Code Coverage
2022-02-24 21:14:11 +08:00
d83b676c60
Merge branch 'gjson_example'
2022-02-24 20:15:55 +08:00
def3dc364f
Merge branch 'master' of https://github.com/gogf/gf
2022-02-24 20:15:44 +08:00
298aa5f040
Improving gjson Code Coverage
2022-02-24 20:14:44 +08:00