Yusuf Efe
be3bc0c43f
fix(package): [iterator] report available elements in HasNext ( #392 )
2026-10-22 10:34:04 +08:00
Yusuf Efe
9685357daf
fix(package): [validator] accept supported hostless URL schemes ( #395 )
2026-10-22 10:31:04 +08:00
Yusuf Efe
9a8b67ac85
fix(package): [netutil] skip invalid forwarded IP values ( #397 )
2026-10-22 10:29:35 +08:00
Yusuf Efe
19ccb13893
fix(package): [random] handle non-positive unique slice lengths ( #402 )
2026-10-22 10:29:10 +08:00
Yusuf Efe
ef22b5b339
fix(package): [structs] recognise directly embedded fields ( #403 )
2026-10-22 10:28:54 +08:00
Yusuf Efe
3b94ec1932
fix(package): [netutil] bracket IPv6 dial addresses ( #398 )
2026-10-22 10:28:40 +08:00
Yusuf Efe
e49a01e725
fix(package): [algorithm] handle empty iterative searches ( #399 )
2026-10-22 10:28:04 +08:00
dudaodong
13b7b1c61e
fix: use mock proxy in TestProxy
2026-10-13 11:09:26 +08:00
Copilot and duke-git
227501958f
Fix fileutil CI panic by serving ReadFile test fixtures from a local httptest server ( #358 )
...
* Initial plan
* Apply remaining changes
Co-authored-by: duke-git <5037603+duke-git@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: duke-git <5037603+duke-git@users.noreply.github.com >
2026-10-13 11:07:23 +08:00
Sash
835111c832
fix: treat IPv6 and shared-space addresses as internal ( #357 )
...
IsInternalIP returned false for unique-local and link-local IPv6, for
100.64.0.0/10, and for NAT64, 6to4, and Teredo addresses that carry an
internal IPv4 address.
Fixes #356
2026-10-13 11:00:26 +08:00
dudaodong
747dddee8b
doc: add docment for UpperCamelCase
2026-03-07 12:33:39 +08:00
dudaodong
cf1b27a35a
release v2.3.9
v2.3.9
2026-03-07 11:51:11 +08:00
dudaodong
d2103346c4
fix: fix TestRandStringConcurrent failed in github action task
2026-03-07 11:47:19 +08:00
dudaodong
ce3967b1d5
doc: add docment for UpperCamelCase
2026-03-07 11:22:01 +08:00
dudaodong
de682f2214
feat: add UpperCamelCase
2026-02-24 17:15:30 +08:00
Lars Lehtonen
b252b415fa
fix: dropped http errors ( #351 )
2026-02-24 16:58:49 +08:00
dudaodong
c0841d7be5
Merge branch 'v2' of github.com:duke-git/lancet into v2
2026-01-29 10:08:21 +08:00
Javen and Jiawen
b3fd282b50
feat: add address.Smart and Decompose for parse CN address ( #346 )
...
* feat: add address.Smart and Decompose for parse CN address
* feat: add Xinjiang directly-administered county-level cities support
- Add '自治区直辖县级市' as a city-level unit (ID: 4043) in A2Data for Xinjiang
- Add 12 directly-administered county-level cities in A3Data (IDs: 4044-4055):
* 石河子市 (Shihezi, 1976, 8th Division) - ID: 4044
* 阿拉尔市 (Aral, 2002, 1st Division) - ID: 4045
* 图木舒克市 (Tumxuk, 2002, 3rd Division) - ID: 4046
* 五家渠市 (Wujiaqu, 2002, 6th Division) - ID: 4047
* 北屯市 (Beitun, 2011, 10th Division) - ID: 4048
* 铁门关市 (Tiemenguan, 2012, 2nd Division) - ID: 4049
* 双河市 (Shuanghe, 2014, 5th Division) - ID: 4050
* 可克达拉市 (Kokdala, 2015, 4th Division) - ID: 4051
* 昆玉市 (Kunyu, 2016, 14th Division) - ID: 4052
* 胡杨河市 (Huyanghe, 2019, 7th Division) - ID: 4053
* 新星市 (Xinxing, 2021, 13th Division) - ID: 4054
* 白杨市 (Baiyang, 2023, 9th Division) - ID: 4055
- All county-level cities are under PID 4043 (自治区直辖县级市)
- Add test case for Xinjiang Shihezi city address parsing
- Now supports parsing addresses like: 新疆石河子市北三路25小区
* docs: formated address data
* fix: parse repeat address error
* feat: update readme file
---------
Co-authored-by: Jiawen <im@linjiawen.com >
2026-01-13 14:00:44 +08:00
efinKiaC
a1cebec9f2
ReadFileByLine bugfix ( #350 )
2026-01-13 11:24:08 +08:00
Yang Li
88cf1600e8
fix(random): avoid concurrent rand.Seed causing panic ( #345 )
2025-12-16 13:52:25 +08:00
Javen and Jiawen
0851b68b83
Feat/encryption for sm2 sm3 sm4 ( #343 )
...
* feat: add ContainAny
* feat:encryption adds support for SM2, SM3, and SM4 #131
* doc: add docment for SM2, SM3, and SM4 #131
---------
Co-authored-by: Jiawen <im@linjiawen.com >
2025-11-07 19:17:55 +08:00
Javen and Jiawen
5c13fd4f2f
Fix/339 ( #344 )
...
* feat: add ContainAny
* fix: fix issue #339
---------
Co-authored-by: Jiawen <im@linjiawen.com >
2025-11-07 19:17:09 +08:00
dudaodong
889d0cc3d6
doc: update readme file
2025-11-01 21:45:56 +08:00
dudaodong
aa05027cab
doc: update readme file
2025-11-01 21:44:03 +08:00
dudaodong
fabc3483ed
doc: update readme file
2025-11-01 21:37:15 +08:00
dudaodong
30363242bb
doc: update document for version v2.3.8
2025-11-01 21:25:10 +08:00
dudaodong
5d3964d81a
release v2.3.8
v2.3.8
2025-11-01 19:39:46 +08:00
dudaodong
6c3dc3e7d6
Merge branch 'rc' of github.com:duke-git/lancet into rc
2025-10-31 14:59:25 +08:00
dudaodong
2a2e1ca551
doc: add enum and update overview index
2025-10-31 14:57:54 +08:00
dudaodong
e1821eed2c
doc: add docment for enum package
2025-10-31 14:48:32 +08:00
dudaodong
62f0a96d91
doc: add docment for enum package
2025-10-31 14:48:22 +08:00
dudaodong
cbdc3971dd
doc: add docment for new or fixed function
2025-10-31 13:37:41 +08:00
Javen and Jiawen
350450bb67
feat: add ContainAny ( #338 )
...
Co-authored-by: Jiawen <im@linjiawen.com >
2025-10-30 19:24:45 +08:00
dudaodong
f407e51b24
fix: fix issue #335
2025-10-30 17:09:48 +08:00
dudaodong
3c6c3a14cf
Merge branch 'rc' into v2
2025-10-29 21:10:54 +08:00
dudaodong
41bafdef92
refact: remove unused code
2025-10-29 21:10:30 +08:00
wangxc
fc624195c7
feat:add map to markdown conversion in map.go ( #336 )
...
* feat(file): add map to markdown conversion in map.go
* feat(file): add map to markdown conversion in map.go
2025-10-29 21:07:18 +08:00
残念
5b3a59e785
Merge pull request #334 from duke-git/v2
...
Add enum package
2025-10-25 12:32:12 +08:00
chentong
74abb2d3f1
feat(struct): add struct name function ( #328 )
...
* feat(struct): add struct name function
- Add Name() method to Struct type to return the struct name
- Implement unit tests for the new Name() method
* refactor(structs): rename Struct.Name to Struct.TypeName
- Rename method Name to TypeName for clarity and accuracy
- Update corresponding test cases
2025-10-23 11:20:43 +08:00
dudaodong
3f12b34eea
fix: fix issue for PR #334 , usge Pair struct to instance enum items
2025-10-16 18:43:24 +08:00
dudaodong
cd43004a91
feat: add example for enum package
2025-10-14 16:37:02 +08:00
dudaodong
3ac9461c00
Merge branch 'rc' into v2
2025-09-30 14:57:01 +08:00
dudaodong
309b07ae8a
feat: a simple enum implementation
2025-09-30 14:56:25 +08:00
chentong
8fe56b6dc7
fix(eventbus): update error handler to include topic information ( #333 )
...
* fix(eventbus): update error handler to include topic information
- Modified error handler signature to accept topic string and error
- Updated panic recovery logic to pass event topic to error handler
- Adjusted SetErrorHandler method parameter signature
- Updated example test to demonstrate new error handler usage
- Enhanced error handling test to verify topic information
* fix(eventbus): unit test
2025-09-28 20:10:12 +08:00
残念
15a0dad0d8
Merge pull request #330 from zoulux/main
...
fix: return 0 when Average is called with empty slice
2025-09-23 11:22:30 +08:00
jake
93c777a418
Update mathutil.go
...
fix: return 0 when Average is called with empty slice
2025-09-22 10:04:23 +08:00
jake
5ff1c6578f
Merge branch 'duke-git:main' into main
2025-09-22 09:53:09 +08:00
dudaodong
7d4b9510a2
feat: add IsChineseHMPassport
2025-08-21 14:13:43 +08:00
dudaodong
9f0ad2354a
feat: update some test fucntions
2025-08-21 10:52:44 +08:00
dudaodong
55b66dee99
Merge branch 'rc' into v2
2025-08-21 10:08:21 +08:00