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
ec6e091882
chore: fix some function names in comment ( #3967 )
2024-12-01 11: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
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
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
5884a0e05f
fix issue #2381 ( #2382 )
...
* fix issue #2381
* up
* up
2023-01-03 11:00:23 +08:00
1793bf0863
add golangci feature to guarantee codes quality ( #2229 )
2022-11-01 20:12:21 +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
4902eb73b7
gfmt file
2022-05-12 21:31:54 +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
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
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
e4d56e7ad9
improve package gjson
2022-02-23 16:54:15 +08:00
0fce4edcd3
Merge branch 'master' of https://github.com/gogf/gf
2022-02-23 00:46:47 +08:00
da465bb030
Improving gjson Code Coverage
2022-02-23 00:46:13 +08:00
d23b24dfba
Merge pull request #1610 from huangqian1985/master
...
gjson Example Function
2022-02-22 22:03:54 +08:00
afa58ed45b
fix issue #1227 #1617
2022-02-22 10:43:31 +08:00
b2b0a1828e
Implemented gjson Example
...
1.MapStrAny 2.Interfaces 3.Interface 4.Var 5.IsNil 6.Get 7.GetJson 8.GetJsons 9.GetJsonMap 10.Set 11.MustSet 12.Remove 13.MustRemove 14.Contains 15.Len 16.Append 17.MustAppend 18. Map 19.Array 20.Scan 21.Dump
2022-02-19 19:48:50 +08:00
5eec9ce7b1
Modify Function Name
2022-02-19 11:43:45 +08:00
0bd3537a78
Implemented gjson Example
...
1.SetViolenceCheck 2.ToJson 3.ToJsonString 4.ToJsonIndent 5.ToJsonIndentString 6.MustToJson 7.MustToJsonString 8.MustToJsonIndent 9.MustToJsonIndentString 10.ToXml 11.ToXmlString 12.ToXmlIndent 13.ToXmlIndentString 14.MustToXml 15.MustToXmlString 16.MustToXmlIndent 17.MustToXmlIndentString 18.ToYaml 19.ToYamlString 20.ToYamlIndent 21.MustToYaml 22.MustToYamlString 23.ToToml 24.ToTomlString 25.MustToToml 26.MustToTomlString 27.ToIni 28.ToIniString 29.MustToIni 30.MustToIniString 31.MarshalJSON 32.UnmarshalJSON 33.UnmarshalValue
2022-02-17 22:54:29 +08:00
144249fcff
Implemented gjson Example
...
1.SetSplitChar
2022-02-17 20:29:38 +08:00
f8f13bd905
Implemented gjson Example
...
1.Unmarshal 2.Encode 3.MustEncode 4.EncodeString 5.MustEncodeString 6.Decode 7.DecodeTo 8.DecodeToJson
2022-02-16 22:38:25 +08:00
33367fd3ee
Implemented gjson Example
...
1.ExampleValid 2.ExampleMarshal 3.ExampleMarshalIndent
2022-02-15 23:02:48 +08:00
4fc27f6509
Implemented gjson Example
...
1. ExampleLoad 2.ExampleLoadJson 3.ExampleLoadXml 4.ExampleLoadIni 5.ExampleLoadYaml 6.ExampleLoadToml
7.ExampleLoadContent 8.ExampleLoadContentType 9.ExampleIsValidDataType
2022-02-15 22:08:51 +08:00
8cb6086f73
Implemented gjson Example
...
1. New 2.NewWithTag 3.NewWithOptions
2022-02-12 17:27:32 +08:00
e517bf7b0e
improve details for package gjson/gtcp/gudp
2022-01-22 15:45:38 +08:00
c75cce0378
fix issue in package gjson for interface assertion of nil Json
2022-01-21 12:38:06 +08:00
3bbbe1db9c
change pointer receiver that implements interface MarshalJSON to struct receiver for all packages
2022-01-19 16:55:57 +08:00
56f88f759a
add buildin function yamli for package gview
2022-01-17 17:10:44 +08:00
c72a9f2e1e
add buildin functions xml/ini/yaml/toml for package gview
2022-01-17 15:55:45 +08:00
d4b502f14e
fix issue #1571
2022-01-15 22:15:10 +08:00