Skip to content

Commit 3437358

Browse files
authored
Optimizing the IsDate method (#85)
* version log * 1 * 1 * 1 * 1 * change log * change log * Optimizing the IsDate method * version log * unit tests * unit tests
1 parent 27dd105 commit 3437358

File tree

7 files changed

+178
-426
lines changed

7 files changed

+178
-426
lines changed

CHANGELOG.cn.md

Lines changed: 59 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,74 @@
1-
# 版本更新记录
1+
## v2.2.4
2+
- 单元测试覆盖率提升 [#81](https://github.com/jefferyjob/go-easy-utils/pull/81)
3+
- Dependabot 计划间隔每周 [#82](https://github.com/jefferyjob/go-easy-utils/pull/82)
4+
- 功能:更新问题模板 [#83](https://github.com/jefferyjob/go-easy-utils/pull/83)
5+
- 更新问题表单 [#84](https://github.com/jefferyjob/go-easy-utils/pull/84)
6+
- 优化IsDate方法 [#85](https://github.com/jefferyjob/go-easy-utils/pull/85)
27

3-
## v1.0.0
4-
- 工具包开发,支持常用功能开发
8+
## v2.2.3
9+
- `jsonUtil` 优化 var 定义 [#80](https://github.com/jefferyjob/go-easy-utils/pull/80)
510

6-
## v1.0.1
7-
- 优化了 `JsonToStruct` 方法中指针类型的参数判断
8-
- 优化了 `anyUtil` 包中关于指针类型的判断
9-
- 优化了 `anyUtil``jsonUtil` 文档
10-
- Fix:删除了 `AnyToInt` 方法中的debug代码
11-
- Fix:修复了身份证号验证存在的问题
11+
## v2.2.2
12+
- 增加集合方法:差集、对称差集、交集 [#77](https://github.com/jefferyjob/go-easy-utils/pull/77)
13+
- 补充文档 [#78](https://github.com/jefferyjob/go-easy-utils/pull/78)
14+
- 优化 var 定义 [#79](https://github.com/jefferyjob/go-easy-utils/pull/79)
1215

13-
## v1.0.2
14-
- 优化了 `jsonUtil` 包中result类型的验证
15-
- 修复了`JsonToStruct`中数据类型传入空字符串的校验错误
16+
## v2.2.1
17+
- 优化文档中已知问题 [#76](https://github.com/jefferyjob/go-easy-utils/pull/76)
1618

17-
## v1.1.0
18-
- `sliceUtil` 包中增加了更多的方法
19-
- 项目中的某些形参更加规范命名
19+
## v2.2.0
20+
- 新增方法 `ExtractKeys` 用于切片字段提取 [#74](https://github.com/jefferyjob/go-easy-utils/pull/74)
21+
- 新增方法 `SliceToMap` 将切片转换为 map [#74](https://github.com/jefferyjob/go-easy-utils/pull/74)
2022

21-
## v1.1.1
22-
- 修复了`JsonToStruct``slice`中数据类型不一致解析错误
23-
- `JsonToStruct`支持`map`数据类型的解析
23+
## v2.1.3
24+
- `error code` 迁移到各自的包下 [#67](https://github.com/jefferyjob/go-easy-utils/pull/67)
25+
- 增加 `cryptoUtil` 包的单元测试方法 [#68](https://github.com/jefferyjob/go-easy-utils/pull/68)
2426

25-
## v1.2.0
26-
- `JsonToStruct` 支持基本数据类型中定义 `interface{}`
27-
- `JsonToStruct` 支持基本数据类型中定义 `any`
28-
- 优化 `parsePrimitiveValue``string` 转义兼容
29-
- 优化 `parsePrimitiveValue``bool` 转义兼容
27+
## v2.1.2
28+
- `cryptoUtil` 包支持 RAS 加密方法 [#62](https://github.com/jefferyjob/go-easy-utils/pull/62)
29+
- `mathUtil` 包单元测试优化 [#63](https://github.com/jefferyjob/go-easy-utils/pull/63)
3030

31-
## v2.0.0
32-
- 项目全面支持泛型和any
33-
- 新增 `mathUtil`
34-
- 删除了 `intUtil`
35-
- `mathUtil` 包泛型优化
31+
## v2.1.1
32+
- 优化 Makefile 帮助信息展示 [#53](https://github.com/jefferyjob/go-easy-utils/pull/53)
33+
- 增加单元测试代码 [#52](https://github.com/jefferyjob/go-easy-utils/pull/52)
34+
35+
## v2.1.0
36+
- `JsonToStruct` 支持基本数据类型中定义 `interface{}` [#41](https://github.com/jefferyjob/go-easy-utils/pull/41)
37+
- `JsonToStruct` 支持基本数据类型中定义 `any` [#41](https://github.com/jefferyjob/go-easy-utils/pull/41)
38+
- 优化 `parsePrimitiveValue``string``bool` 转义兼容 [#43](https://github.com/jefferyjob/go-easy-utils/pull/43)
3639

3740
## v2.0.1
38-
- 修复了`JsonToStruct``slice`中数据类型不一致解析错误
39-
- `JsonToStruct`支持`map`数据类型的解析
41+
- 修复 `JsonToStruct``slice` 数据类型不一致解析错误 [#37](https://github.com/jefferyjob/go-easy-utils/pull/37)
42+
- `JsonToStruct` 支持解析 `map` 数据类型 [#37](https://github.com/jefferyjob/go-easy-utils/pull/37)
4043

41-
## v2.1.0
42-
- `JsonToStruct` 支持基本数据类型中定义 `interface{}`
43-
- `JsonToStruct` 支持基本数据类型中定义 `any`
44-
- 优化 `parsePrimitiveValue``string` 转义兼容
45-
- 优化 `parsePrimitiveValue``bool` 转义兼容
44+
## v2.0.0
45+
- 项目全面支持泛型和 `any` [#19](https://github.com/jefferyjob/go-easy-utils/pull/19)
46+
- 新增 `mathUtil`[#22](https://github.com/jefferyjob/go-easy-utils/pull/22)
47+
- 删除 `intUtil`[#27](https://github.com/jefferyjob/go-easy-utils/pull/27)
48+
- 优化 `mathUtil` 包泛型 [#30](https://github.com/jefferyjob/go-easy-utils/pull/30)
4649

47-
## v2.1.1
48-
- 优化 makefile 文件帮助信息的展示
49-
- 增加单元测试代码
50+
## v1.2.0
51+
- `JsonToStruct` 支持 `interface{}``any` 在基本数据类型中的定义 [#40](https://github.com/jefferyjob/go-easy-utils/pull/40)
52+
- 优化 `parsePrimitiveValue``string``bool` 的转义兼容 [#42](https://github.com/jefferyjob/go-easy-utils/pull/42)
5053

51-
## v2.1.2
52-
- `cryptoUtil` 包支持RAS加密方法
53-
- `mathUtil` 包单元测试优化
54+
## v1.1.1
55+
- 修复 `JsonToStruct``slice` 数据类型不一致解析错误 [#36](https://github.com/jefferyjob/go-easy-utils/pull/36)
56+
- `JsonToStruct` 支持 `map` 数据类型的解析 [#36](https://github.com/jefferyjob/go-easy-utils/pull/36)
5457

55-
## v2.1.3
56-
- error code 迁移到各自的包下
57-
- 增加 cryptoUtil 包的单元测试方法
58+
## v1.1.0
59+
- `sliceUtil` 包增加更多方法 [#11](https://github.com/jefferyjob/go-easy-utils/pull/11)
60+
- 形参命名更为规范 [#10](https://github.com/jefferyjob/go-easy-utils/pull/10)
5861

59-
## v2.2.0
60-
- 开发新方法 ExtractKeys 切片字段提取
61-
- 开发新方法 SliceToMap 切片转map
62+
## v1.0.2
63+
- 优化 `jsonUtil` 包中 result 类型的验证 [#9](https://github.com/jefferyjob/go-easy-utils/pull/9)
64+
- 修复 `JsonToStruct` 数据类型为空字符串时的校验错误 [#9](https://github.com/jefferyjob/go-easy-utils/pull/9)
6265

63-
## v2.2.1
64-
- 优化文档中存在的已知问题
66+
## v1.0.1
67+
- 优化 `JsonToStruct` 方法中指针类型参数判断
68+
- 优化 `anyUtil` 包中指针类型的判断
69+
- 优化 `anyUtil``jsonUtil` 的文档
70+
- 修复 `AnyToInt` 方法中的 debug 代码 [#5](https://github.com/jefferyjob/go-easy-utils/pull/5)
71+
- 修复身份证号验证问题 [#7](https://github.com/jefferyjob/go-easy-utils/pull/7)
72+
73+
## v1.0.0
74+
- 工具包开发,支持常用功能开发

CHANGELOG.md

Lines changed: 62 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,77 @@
1-
# Version update record
1+
## v2.2.4
2+
- Improved unit test coverage [#81](https://github.com/jefferyjob/go-easy-utils/pull/81)
3+
- Dependabot scheduled every week [#82](https://github.com/jefferyjob/go-easy-utils/pull/82)
4+
- feature: update issue template [#83](https://github.com/jefferyjob/go-easy-utils/pull/83)
5+
- Update to issue question form [#84](https://github.com/jefferyjob/go-easy-utils/pull/84)
6+
- Optimizing the IsDate method [#85](https://github.com/jefferyjob/go-easy-utils/pull/85)
27

3-
## v1.0.0
4-
- Toolkit development, supporting common function development
8+
## v2.2.3
9+
- jsonUtil optimizes var definition [#80](https://github.com/jefferyjob/go-easy-utils/pull/80)
510

6-
## v1.0.1
7-
- Optimized the parameter judgment of pointer type in `JsonToStruct` method
8-
- Optimized the judgment of pointer type in `anyUti`l package
9-
- Optimized the documentation of `anyUtil` and `jsonUtil`
10-
- Fix: Removed debug code from the `AnyToInt` method (#5)
11-
- Fix: Problems in ID number verification (#7)
11+
## v2.2.2
12+
- feat: Added set methods difference, symmetric difference, intersection [#77](https://github.com/jefferyjob/go-easy-utils/pull/77)
13+
- feat: Documentation supplement [#78](https://github.com/jefferyjob/go-easy-utils/pull/78)
14+
- Optimize var definition in [#79](https://github.com/jefferyjob/go-easy-utils/pull/79)
1215

13-
## v1.0.2
14-
- Optimized the validation of the result type in the `jsonUtil` package (#9)
15-
- Fixed the validation error of passing an empty string for the data type in `JsonToStruct` (#9)
16+
## v2.2.1
17+
- Known issues in optimization documentation [#76](https://github.com/jefferyjob/go-easy-utils/pull/76)
1618

17-
## v1.1.0
18-
- `sliceUtil` More methods have been added to the package (#11)
19-
- Some formal parameters in the project are more standardized in naming (#10)
19+
## v2.2.0
20+
- Developed a new method ExtractKeys to extract slice fields [#74](https://github.com/jefferyjob/go-easy-utils/pull/74)
21+
- Developed a new method SliceToMap to convert slices to maps [#74](https://github.com/jefferyjob/go-easy-utils/pull/74)
2022

21-
## v1.1.1
22-
- Fixed the data type inconsistency parsing error in `slice` in `JsonToStruct` (#36)
23-
- `JsonToStruct` supports parsing of `map` data type (#36)
23+
## v2.1.3
24+
- error codes are migrated to their respective packages [#67](https://github.com/jefferyjob/go-easy-utils/pull/67)
25+
- Add unit test method of cryptoUtil package [#68](https://github.com/jefferyjob/go-easy-utils/pull/68)
2426

25-
## v1.2.0
26-
- `JsonToStruct` supports `interface{}` defined in basic data types (#40)
27-
- `JsonToStruct` supports `any` defined in primitive data types (#40)
28-
- Optimize `string` escape compatibility of `parsePrimitiveValue` (#42)
29-
- Optimize `parsePrimitiveValue`'s `bool` escape compatibility (#42)
27+
## v2.1.2
28+
- `cryptoUtil` package supports RAS encryption method [#62](https://github.com/jefferyjob/go-easy-utils/pull/62)
29+
- `mathUtil` package unit test optimization [#63](https://github.com/jefferyjob/go-easy-utils/pull/63)
3030

31-
## v2.0.0
32-
- The project fully supports generics and any (#19)
33-
- Added `mathUtil` package (#22)
34-
- Removed `intUtil` package (#27)
35-
- `mathUtil` package generic optimization (#30)
31+
## v2.1.1
32+
- Optimize the display of makefile help information [#53](https://github.com/jefferyjob/go-easy-utils/pull/53)
33+
- Add unit test code [#52](https://github.com/jefferyjob/go-easy-utils/pull/52)
34+
35+
## v2.1.0
36+
- `JsonToStruct` supports `interface{}` defined in basic data types [#41](https://github.com/jefferyjob/go-easy-utils/pull/41)
37+
- `JsonToStruct` supports `any` defined in primitive data types [#41](https://github.com/jefferyjob/go-easy-utils/pull/41)
38+
- Optimize `string` escape compatibility of `parsePrimitiveValue` [#43](https://github.com/jefferyjob/go-easy-utils/pull/43)
39+
- Optimize `parsePrimitiveValue`'s `bool` escape compatibility [#43](https://github.com/jefferyjob/go-easy-utils/pull/43)
3640

3741
## v2.0.1
38-
- Fixed the data type inconsistency parsing error in `slice` in `JsonToStruct` (#37)
39-
- `JsonToStruct` supports parsing of `map` data type (#37)
42+
- Fixed the data type inconsistency parsing error in `slice` in `JsonToStruct` [#37](https://github.com/jefferyjob/go-easy-utils/pull/37)
43+
- `JsonToStruct` supports parsing of `map` data type [#37](https://github.com/jefferyjob/go-easy-utils/pull/37)
4044

41-
## v2.1.0
42-
- `JsonToStruct` supports `interface{}` defined in basic data types (#41)
43-
- `JsonToStruct` supports `any` defined in primitive data types (#41)
44-
- Optimize `string` escape compatibility of `parsePrimitiveValue` (#43)
45-
- Optimize `parsePrimitiveValue`'s `bool` escape compatibility (#43)
45+
## v2.0.0
46+
- The project fully supports generics and any [#19](https://github.com/jefferyjob/go-easy-utils/pull/19)
47+
- Added `mathUtil` package [#22](https://github.com/jefferyjob/go-easy-utils/pull/22)
48+
- Removed `intUtil` package [#27](https://github.com/jefferyjob/go-easy-utils/pull/27)
49+
- `mathUtil` package generic optimization [#30](https://github.com/jefferyjob/go-easy-utils/pull/30)
4650

47-
## v2.1.1
48-
- Optimize the display of makefile help information (#53)
49-
- Add unit test code (#52)
51+
## v1.2.0
52+
- `JsonToStruct` supports `interface{}` defined in basic data types [#40](https://github.com/jefferyjob/go-easy-utils/pull/40)
53+
- `JsonToStruct` supports `any` defined in primitive data types [#40](https://github.com/jefferyjob/go-easy-utils/pull/40)
54+
- Optimize `string` escape compatibility of `parsePrimitiveValue` [#42](https://github.com/jefferyjob/go-easy-utils/pull/42)
55+
- Optimize `parsePrimitiveValue`'s `bool` escape compatibility [#42](https://github.com/jefferyjob/go-easy-utils/pull/42)
5056

51-
## v2.1.2
52-
- `cryptoUtil` package supports RAS encryption method (#62)
53-
- `mathUtil` package unit test optimization (#63)
57+
## v1.1.1
58+
- Fixed the data type inconsistency parsing error in `slice` in `JsonToStruct` [#36](https://github.com/jefferyjob/go-easy-utils/pull/36)
59+
- `JsonToStruct` supports parsing of `map` data type [#36](https://github.com/jefferyjob/go-easy-utils/pull/36)
5460

55-
## v2.1.3
56-
- error codes are migrated to their respective packages (#67)
57-
- Add unit test method of cryptoUtil package (#68)
61+
## v1.1.0
62+
- `sliceUtil` More methods have been added to the package [#11](https://github.com/jefferyjob/go-easy-utils/pull/11)
63+
- Some formal parameters in the project are more standardized in naming [#10](https://github.com/jefferyjob/go-easy-utils/pull/10)
5864

59-
## v2.2.0
60-
- Developed a new method ExtractKeys to extract slice fields (#74)
61-
- Developed a new method SliceToMap to convert slices to maps (#74)
65+
## v1.0.2
66+
- Optimized the validation of the result type in the `jsonUtil` package [#9](https://github.com/jefferyjob/go-easy-utils/pull/9)
67+
- Fixed the validation error of passing an empty string for the data type in `JsonToStruct` [#9](https://github.com/jefferyjob/go-easy-utils/pull/9)
6268

63-
## v2.2.1
64-
- Known issues in optimization documentation
69+
## v1.0.1
70+
- Optimized the parameter judgment of pointer type in `JsonToStruct` method
71+
- Optimized the judgment of pointer type in `anyUtil` package
72+
- Optimized the documentation of `anyUtil` and `jsonUtil`
73+
- Fix: Removed debug code from the `AnyToInt` method [#5](https://github.com/jefferyjob/go-easy-utils/pull/5)
74+
- Fix: Problems in ID number verification [#7](https://github.com/jefferyjob/go-easy-utils/pull/7)
75+
76+
## v1.0.0
77+
- Toolkit development, supporting common function development

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
HONY:build
1+
.PHONY:build
22
build: ## 编译项目
33
go build -v ./...
44

0 commit comments

Comments
 (0)