dudaodong
e2522cd29b
fix: fix TestEachWithBreak case
2023-03-29 10:24:41 +08:00
dudaodong
da69b77892
Merge branch 'main' of github.com:duke-git/lancet
2023-03-29 10:15:56 +08:00
dudaodong
05772d8d7d
comment TestEachWithBreak
2023-03-28 20:08:05 +08:00
Mickls
3b497532f3
fix: The LastIndexOf method can never return the index of the first element ( #83 )
...
Co-authored-by: JiangCheng <jiangcheng@kezaihui.com >
2023-03-28 20:02:57 +08:00
dudaodong
1cd3be508c
refactor rename async package name to
2023-03-24 11:43:56 +08:00
dudaodong
a41d461910
doc: update mathutil package doc
2023-03-24 11:23:45 +08:00
dudaodong
cde5946bf0
feat: add PointDistance
2023-03-23 17:49:07 +08:00
dudaodong
c28803b25e
feat: add AngleToRadian and RadianToAngle
2023-03-23 17:41:31 +08:00
dudaodong
f09e521783
doc: add go playground demo
2023-03-22 21:06:01 +08:00
dudaodong
0aa41f337d
fix: test failed
v2.1.17
2023-03-20 16:39:56 +08:00
dudaodong
48814a720a
fix: test failed in promise test
2023-03-20 16:26:21 +08:00
dudaodong
04b79b3dfe
release v2.1.17
2023-03-20 16:17:52 +08:00
dudaodong
302007ebdf
doc: update readme file for new feature
2023-03-20 16:12:58 +08:00
dudaodong
965e5fbcda
feat: add Pop for set
2023-03-20 11:10:35 +08:00
dudaodong
70d0adde42
feat: add EachWithBreak for set
2023-03-20 10:49:14 +08:00
dudaodong
0b80074bb7
refactor: remove unused code
2023-03-20 10:35:37 +08:00
dudaodong
90945a0399
Merge branch 'main' into v2
2023-03-18 19:35:48 +08:00
zm
47dccd63af
add the struct package english docs ( #82 )
2023-03-18 19:33:07 +08:00
dudaodong
4ae7e59829
feat: add example for promise
2023-03-17 16:03:35 +08:00
dudaodong
8f0c60cade
test: add unit test for promise Race and Any function
2023-03-17 13:59:18 +08:00
dudaodong
3f6aef1432
fix: fix bug of IsNotNil function
2023-03-16 19:15:36 +08:00
dudaodong
a714e04470
test: add unit test for promise.All function
2023-03-16 19:11:30 +08:00
dudaodong
7456621153
fix: fix bug of IsNil function
2023-03-16 17:01:28 +08:00
dudaodong
73ac9825e9
test: add unit test for Promise
2023-03-16 16:55:32 +08:00
dudaodong
930bb9c839
feat: complete promise Any function
2023-03-16 15:59:06 +08:00
dudaodong
3d8f1be212
feat: add error_join.go to support join error under go1.19, for internal use.
2023-03-16 15:56:54 +08:00
dudaodong
13a4ed59fa
doc: update comment for concurrency package
2023-03-16 15:35:26 +08:00
dudaodong
c799d10ce9
feat: add promise All, Race, Any methods
2023-03-16 15:34:28 +08:00
dudaodong
5ab322ade2
feat: add async package, promise implemention
2023-03-16 14:49:07 +08:00
dudaodong
d0ffc61842
doc: fix doc error
2023-03-16 10:36:06 +08:00
zm
5e66bc6227
[structs] change package structutil to structs ( #81 )
...
* refactor package structutil to structs
* add structs package zh-CN docs
2023-03-15 19:14:19 +08:00
dudaodong
7261b281ad
refactor: add function comment for tag.go
2023-03-15 17:43:47 +08:00
dudaodong
f79693804b
refactor: make package variable defaultTagName unexported
2023-03-15 15:08:56 +08:00
dudaodong
534c7a0abc
refactor: make errInvalidStruct exported, change error.go to struct_internal.go
2023-03-15 14:58:34 +08:00
dudaodong
4eaff47d38
Merge branch 'main' into v2
2023-03-15 14:43:48 +08:00
dudaodong
3e019522c7
doc: add doc for ForEachWithBreak
2023-03-15 14:42:22 +08:00
dudaodong
0734f220b3
feat: add ForEachWithBreak support break for each loop
2023-03-15 14:38:33 +08:00
zm
2d2c277090
[StructUtil] add support that the Struct can nest any type to transform ( #80 )
...
* add support json tag attribute for StructToMap function
* add the structutil to provide more rich functions and fixed #77
* add support that the nested struct to map for structutil
* recover code
* add structutil unit test
* [StructUtil] add unit test
2023-03-15 14:26:34 +08:00
dudaodong
ef1e548dfc
merge main
2023-03-13 19:44:44 +08:00
zm
924589d2da
Add StructUtil for provide more rich functions ( #79 )
...
* add support json tag attribute for StructToMap function
* add the structutil to provide more rich functions and fixed #77
2023-03-13 19:28:37 +08:00
dudaodong
77f32f4cc6
Merge branch 'main' into v2
2023-03-11 20:14:32 +08:00
zm
1755dd249b
add support json tag attribute for StructToMap function ( #78 )
2023-03-11 20:08:41 +08:00
dudaodong
7a25688ec1
doc: add doc for Range and RangeWithStep
2023-03-09 17:13:51 +08:00
dudaodong
51a6912eb3
feat: add RangeWithStep function
2023-03-06 18:05:58 +08:00
dudaodong
28d0428b50
feat: add Range function
2023-03-06 17:49:56 +08:00
dudaodong
6a9eb645bb
fix: fix StructToUrlValues failed when tag contain omitempty
2023-03-06 17:07:57 +08:00
dudaodong
3857b342f6
fix: fix ExampleContext failed
2023-03-01 11:45:02 +08:00
dudaodong
71aa91a58d
doc: add go playground demo
2023-03-01 11:39:27 +08:00
dudaodong
081908bce3
fix: fix goline error
2023-03-01 11:10:12 +08:00
dudaodong
66efe61834
release v2.1.16
v2.1.16
2023-03-01 10:08:53 +08:00