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
dudaodong
94f7f3e0e5
doc: add new function docs
2023-02-28 15:03:02 +08:00
dudaodong
9d2c9806d1
feat: add ContainBy function
2023-02-24 14:19:10 +08:00
dudaodong
e523d4af6e
doc: add doc for FilterMap and FlatMap
2023-02-24 11:23:02 +08:00
dudaodong
f3801bcd8f
feat: add FlatMap
2023-02-24 11:14:59 +08:00
dudaodong
5767aad303
feat: add FilterMap
2023-02-24 10:55:27 +08:00
dudaodong
f7aaa1ed2a
fix: fix issue #75
2023-02-23 11:43:41 +08:00
dudaodong
ef19a414bc
doc: fix doc error
2023-02-23 10:58:43 +08:00
dudaodong
65704dea06
doc: fix doc error
2023-02-23 10:57:48 +08:00
dudaodong
5eac358bb0
doc: format code in doc file
2023-02-22 17:00:46 +08:00
dudaodong
8e36ef5cef
doc: add doc for new map functions
2023-02-22 16:59:01 +08:00
dudaodong
21b0d2ec0e
doc: add doc for WordCount and SplitWords function
2023-02-22 16:13:41 +08:00
dudaodong
32ca975204
feat: add OmitBy, OmitByKeys, OmitByValues
2023-02-21 14:52:10 +08:00
dudaodong
ec740e442c
feat: add WordCount
2023-02-21 14:27:00 +08:00