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
1b23bf495a
container/gmap&gset: fix deadlock when removing values during iterating ( #3572 )
2024-05-21 22:07:28 +08:00
b9e2b05f04
change interface ConvertDataForRecord to ConvertValueForField for package gdb ( #2916 )
2023-09-04 21:23:54 +08:00
4ad508c04d
feat: add Diff feature to gmap ( #2774 )
2023-07-20 20:07:43 +08:00
1cd1449085
add package contrib/rpc/grpcx ( #2169 )
2023-03-08 14:12:51 +08:00
1793bf0863
add golangci feature to guarantee codes quality ( #2229 )
2022-11-01 20:12:21 +08:00
141ca62c6d
feature/v2.2.0 ( #2154 )
2022-09-26 22:11:13 +08:00
1acc1b8230
improve DeepCopy feature for bunch of components, especially the container and gtime ( #1956 )
2022-06-29 14:58:27 +08:00
3ae23df4b3
Improve the code coverage of the gmap module ( #1910 )
2022-06-20 19:05:47 +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
546b6b1724
t.Assert(err, nil) -> t.AssertNil(err)
2022-03-10 11:36:40 +08:00
c2fb7ada0a
improve example for package gmap
2022-03-08 20:25:34 +08:00
d0a8e60ace
improve example for package gmap
2022-03-08 20:14:38 +08:00
10ed04cdb8
example updates for package gmap
2022-03-08 09:49:33 +08:00
e09704a408
example updates for package gmap
2022-03-07 22:10:34 +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
7e3d7b3575
modify UnmarshalValue Sample
2021-11-22 23:11:40 +08:00
a3dfebffb4
output modify
2021-11-22 00:26:34 +08:00
b58c5311d0
Implemented TreeMap Example
2021-11-21 12:44:59 +08:00
8ea4b71e7a
Implemented ListMap Example
2021-11-20 21:46:20 +08:00
3e5b3a6dad
Implemented StrStrMap Example
2021-11-20 12:37:09 +08:00
61bc38fff6
Implemented StrStrMap Example
2021-11-20 12:27:01 +08:00
7d75f6e7c5
Implemented StrStrMap Example
2021-11-20 12:13:05 +08:00
a99cc34243
Implemented StrStrMap Example
2021-11-20 12:12:32 +08:00
1db2c31ecc
Implemented StrIntMap Example
2021-11-20 08:47:44 +08:00
49edad0216
Implemented StrAnyMap Example
2021-11-20 08:13:10 +08:00
51fd87bc01
Implemented StrAnyMap Example
2021-11-20 07:49:56 +08:00
9aeac45198
Implemented IntIntMap Example
2021-11-19 21:46:11 +08:00
076b15d71f
Implemented IntAnyMap Example
2021-11-19 07:27:19 +08:00
7d6c9244cf
Implemented AnyAnyMap Example Function:
...
1.Replace 2.LockFunc 3.RLockFunc 4.Flip 5.Merge 6.String 7.MarshalJSON 8.UnmarshalJSON 9.UnmarshalValue
2021-11-18 21:37:27 +08:00
3f4dff462d
Merge branch 'master' of https://github.com/gogf/gf
2021-11-18 07:33:29 +08:00
36927b4371
Implemented AnyAnyMap Example Function:
...
1.Remove 2.Removes 3.Keys 4.Values 5.Contains 6.Size 7.IsEmpty 8.Clear
2021-11-18 07:32:29 +08:00
57ccc13e0c
unit testing files renaming
2021-11-17 23:20:58 +08:00
ef29ee4804
Implemented AnyAnyMap Example Function:
...
1.Iterator 2.Clone 3.Map 4.MapCopy 5.MapStrAny 6.FilterEmpty 7.FilterNil 8.Set 9.Sets 10.Search 11.Get 12.Pop 13.Pops 14.GetOrSet 15.GetOrSetFunc 16.GetOrSetFuncLock 17.GetVar 18.GetVarOrSet 19.GetVarOrSetFunc 20.GetVarOrSetFuncLock
2021-11-17 23:18:35 +08:00
416a5173ae
1# Complete the AnyAnyMap Example Function (Not Implemented)
...
2# Implemented AnyAnyMap Example Function:
1.NewAnyAnyMap 2.NewAnyAnyMapFrom
2021-11-16 07:30:14 +08:00
cc9b3a08d0
splite gmap example file.
2021-11-16 07:20:18 +08:00
4e1bbd76f9
Merge branch 'master' of https://github.com/gogf/gf
2021-11-15 23:34:43 +08:00
570814cf6e
gmap example function
...
1.NewFrom 2.NewHashMap 3.NewHashMapFrom
2021-11-15 23:34:25 +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
80b629916a
fix issue in function Clone for package gmap/garray/gtree
2020-12-02 21:38:29 +08:00
631810dda2
add function String for package gmap
2020-09-02 19:53:58 +08:00