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
9589384b36
refactor(encoding/gjson): change data parameter from type any to []byte ( #3542 )
2024-09-28 18:10:00 +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
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
be9377a496
add test cases
2022-05-12 17:05:02 +08:00
7198eb3b66
add support for .properties configuration file
2022-05-08 00:23:24 +08:00
1e141d9f64
improve package gjson/ghttp
2022-04-07 21:26:39 +08:00
d8d9996464
fix issue #1662
2022-03-11 10:24:42 +08:00
e4d56e7ad9
improve package gjson
2022-02-23 16:54:15 +08:00
d4b502f14e
fix issue #1571
2022-01-15 22:15:10 +08:00
ce93b625d4
change errors wrapped by gerror.Wrap with error stack info for all packages
2021-12-21 22:59:14 +08:00
be03b3cdda
Improved import, by group improt.
2021-11-13 23:23:55 +08:00
e5c6d3f777
fix issue in unit testing cases for package gjson
2021-10-28 23:46:24 +08:00
8ef4f68215
add IgnoreEmptySliceWhere feature for package gdb; add OriginValueAndKind/OriginTypeAndKind functions for package internal/utils
2021-10-28 23:18:23 +08:00
fa5499373a
replace char <xxx> to ;add GetWithEnv/GetWithCmd fuctions for package gcfg
2021-10-21 18:22:47 +08:00
1bc0635f8b
version 2
2021-10-11 21:41:56 +08:00
006fb79967
improve package gjson; replace fmt.Errorf to gerror; improve examples for package gdb
2021-09-13 16:43:09 +08:00
abc8e62d58
add package gcode and improve error implements for package gerror
2021-08-24 21:18:59 +08:00
0ddacdd7e2
add error code for components
2021-07-20 23:02:02 +08:00
d109706ad3
unify error package to gerror
2021-06-26 18:34:26 +08:00
7003c284d0
replace json.Unmarshal with json.UnmarshalUseNumber for packages
2021-05-15 22:38:07 +08:00
68247acab1
improve package gjson/gvar
2021-01-19 14:26:17 +08:00
093034acd1
copyright comment update
2021-01-17 21:46:25 +08:00
4df47be521
Make it work when the xml content end with \s*
2020-11-07 18:32:50 +08:00
1671391195
comment updates
2020-09-21 22:56:48 +08:00
28b0d59c61
improve package gcfg/gjson for data loading
2020-09-21 21:30:58 +08:00
ad943c5e02
improve gjson.New by using gconv.MapDeep for map/struct
2020-09-07 19:44:11 +08:00
efca9b18a8
improve content type checks for package gjson
2020-08-12 20:53:47 +08:00
607821ecbc
add function LoadContentType for package gjson
2020-08-12 20:38:48 +08:00
32e4d64ddb
improve package gjson for automatic content type checking
2020-08-12 00:11:25 +08:00
46e45ca84b
improve package gjson for automatic content type checking
2020-08-11 23:46:21 +08:00
fcb13bd8ee
improve package gjson for automatic content type checking
2020-08-11 23:36:40 +08:00
eacad9b453
improve package gjson for automatic content type checking
2020-08-11 23:22:09 +08:00
ed479e2a13
improve package gjson for automatic content type checking
2020-08-11 23:20:22 +08:00
937f8e6919
fix configfile with UTF8-BOM issue
2020-07-25 10:57:40 +08:00
4dd12434b7
add file cache feature for package gfile and remove package gfcache
2020-07-16 12:31:13 +08:00
2c0cfa24b0
fix issue in package gjson for struct to map converting
2020-06-18 20:40:24 +08:00
b2aa59d893
import third-party library json-iterator to improve the performance for json operations
2020-06-17 21:16:25 +08:00
47a6284274
improve package gvalid
2020-05-10 22:32:10 +08:00
23c2f12672
improve MapDeep function for package gconv; improve gjson.New function for loading struct parameter
2020-04-09 13:37:27 +08:00
65bc1d5eb8
comment update for package gjson
2020-03-22 09:24:45 +08:00
6d47810782
improve context feature for ghttp.Request; improve comment for package gjson
2020-03-21 13:32:43 +08:00
0b6d04485e
improve unit testing cases
2020-03-19 22:56:12 +08:00
cdb3b94e22
add NewWithTag function for gjson/gparser
2020-02-08 14:07:32 +08:00
34ef0ea792
add prefix feature for gdb
2019-12-10 21:14:15 +08:00
5f36614dd7
remove UseNumber for json decoding in package gjson
2019-10-09 20:33:26 +08:00
987ce709e5
add UnmarshalJSON for gtime; add ineterface MapStrAny support for gjson.New
2019-09-30 17:23:23 +08:00
6c61704e60
adding package gi18n
2019-08-31 18:04:12 +08:00
ee89a06b3e
improve model feature
2019-08-30 20:29:12 +08:00