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
1acc1b8230
improve DeepCopy feature for bunch of components, especially the container and gtime ( #1956 )
2022-06-29 14:58:27 +08:00
0d7e28ee75
add deep copy feature
2022-05-23 16:51:10 +08:00
f2e1f63396
fix issue #1679
2022-03-21 22:04:15 +08:00
8a27463e44
ensure sequence for json.Marshal for gmap.ListMap/TreeMap
2022-03-07 17:39:41 +08:00
3bbbe1db9c
change pointer receiver that implements interface MarshalJSON to struct receiver for all packages
2022-01-19 16:55:57 +08:00
be03b3cdda
Improved import, by group improt.
2021-11-13 23:23:55 +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
55a9c0738b
improve package gcache, add GetVar*/RemoveVar/UpdateVar functions for package gcache
2021-09-16 20:57:59 +08:00
727f58a24b
remove usage of gconv.Unsafe* functions internally to avoid unexpected errors
2021-09-14 19:30:20 +08:00
7003c284d0
replace json.Unmarshal with json.UnmarshalUseNumber for packages
2021-05-15 22:38:07 +08:00
093034acd1
copyright comment update
2021-01-17 21:46:25 +08:00
631810dda2
add function String for package gmap
2020-09-02 19:53:58 +08:00
46bdde9265
revert gvar.Var from interface to struct
2020-06-29 13:40:19 +08:00
b2aa59d893
import third-party library json-iterator to improve the performance for json operations
2020-06-17 21:16:25 +08:00
4d38b508a3
improve gvar by changig gvar.Var from type struct to interface
2020-06-16 17:38:05 +08:00
8779a3f211
add function Walk for package garray; improve comment for package garray
2020-04-18 13:30:49 +08:00
c7a9c03495
improve package garray/gmap for initialization
2020-04-07 20:06:26 +08:00
eb6a7a4728
add function UnmarshalValue feature for package garray/gmap/gset/gtype/gvar/gjson/gconv
2020-01-20 19:56:42 +08:00
be4bf39719
comment update for container
2019-11-30 18:33:51 +08:00
0e62510c6f
improve configuration feature, add instance feature for package glog; add package guuid for UUID feature
2019-11-06 20:22:20 +08:00
e30b2b0732
improve gsession/gmap/gtree
2019-11-04 21:26:16 +08:00
66355354fc
improve gfsnotify/gview and container
2019-10-31 23:37:33 +08:00
97fe8235da
fix issue in session expiring for file storage of gsession; add Pop/Pops functions for gset/gmap
2019-10-16 23:33:06 +08:00
0ac45dc379
rename file name from link_map to list_map for package gmap
2019-10-14 22:43:31 +08:00