dudaodong
4fd8a18677
release v1.1.6
v1.1.6
2022-01-03 15:58:19 +08:00
dudaodong
3de906d7c9
refactor: reduce gocyclo of doHttpRequest func
2022-01-03 15:53:25 +08:00
dudaodong
56fc12c660
refactor: reduce gocyclo of ToString func
2022-01-03 15:15:22 +08:00
dudaodong
7a9b0847f9
fix: fix some go line issue in go report card
2022-01-03 14:57:14 +08:00
dudaodong
9266d99249
add chinese comment for GroupBy func
2022-01-02 22:12:01 +08:00
donutloop
f15131f032
Slice: find nothing case ( #11 )
...
The current behavior can result into wired edge cases.
**Current behavior**
if find was unsuccessfully then it will return the first element of the
slice
**Desired behavior**
if find was unsuccessfully then it should return negative ok and a none
value
2022-01-02 22:05:27 +08:00
donutloop
b4a49fccfd
Slice: Add GroupBy func ( #10 )
...
Group by: split slice into two groups, applies on each slice element a
predicate func to categorize this element.
Changes
* Add groub by func
* Add test case for this func
2022-01-02 21:24:56 +08:00
dudaodong
94b1a1d383
feat: add Reset func for watcher
v1.1.5
2022-01-01 20:14:41 +08:00
dudaodong
7db46696f6
release v1.1.5
2022-01-01 20:13:21 +08:00
dudaodong
d4f49af2ad
feat: add watcher for record code excution time
2022-01-01 19:56:15 +08:00
dudaodong
ed4acc1c67
feat: add Shuffle func
2022-01-01 19:18:33 +08:00
dudaodong
042a00296f
feat: add FlattenDeep func
2022-01-01 18:14:35 +08:00
dudaodong
b42aac53b3
feat: add Drop func
2022-01-01 17:20:41 +08:00
dudaodong
c625a88067
refactor: rename package 'utils' to 'internal'
2021-12-31 11:36:11 +08:00
dudaodong
e15ae9eb98
update: add Md5String func and Md5File func
2021-12-31 11:25:43 +08:00
dudaodong
bb4ac01209
Merge branch 'main' of github.com:duke-git/lancet into main
2021-12-31 10:18:11 +08:00
donutloop
147c1625b5
Slice: Optimize slice func tools ( #9 )
...
IntSlice and StringSlice: preallocate memory up front for output slice.
Instead returning a error throw a panic because most likely it's a
programming error.
Contain: rename slice to iterableType and add default case for type
mismatches
2021-12-31 10:15:38 +08:00
dudaodong
2aed55f704
refactor: function in slice.go
2021-12-31 10:12:14 +08:00
dudaodong
051f20caef
release: v1.1.4, merge pr7 and pr8
v1.1.4
2021-12-30 20:25:20 +08:00
donutloop
613785b07c
function: catch earlier programming error ( #8 )
...
Place at first line of the function body a function type safe guard
check.
2021-12-30 20:22:00 +08:00
donutloop
0b0eb695e8
datetime: optimized func calls ( #7 )
...
Replace time parsing calls with less expensive operations
2021-12-30 10:29:10 +08:00
dudaodong
745082fff1
fix: update api url for http timeout issue in the task of github actions
2021-12-29 11:39:48 +08:00
dudaodong
24b8da360e
release: v1.1.3, merge pr5 and pr6
v1.1.3
2021-12-29 09:55:42 +08:00
donutloop
b106c428ae
Every: use int counter ( #6 )
...
Use counter to verify all elements passed the perdicate func.
Replace slice of indexes with int counter.
2021-12-29 09:51:50 +08:00
dudaodong
8b1171d0cb
fmt: go fmt for request_test.go
2021-12-28 19:28:55 +08:00
donutloop
ab012f2545
LowerFirst: use slicing and utf8 func tools ( #5 )
...
Replace looping with slicing and utf8 func tools operations.
2021-12-28 19:25:44 +08:00
dudaodong
a952cb208a
release v1.1.2
v1.1.2
2021-12-28 11:28:00 +08:00
dudaodong
f239a8ca8e
fix: fix request timeout issue
2021-12-28 11:04:57 +08:00
dudaodong
5c6626b37e
fmt: go fmt for function.go
2021-12-28 11:00:43 +08:00
dudaodong
16b5101600
fix: fix TestHttpPost timeout issue
2021-12-28 10:56:54 +08:00
dudaodong
ec983b7aa6
fix: fix
...
Intersection slice issue
2021-12-28 10:16:53 +08:00
dudaodong
56fc2aabd6
fmt: fix lint issue
v1.1.1
2021-12-28 10:08:08 +08:00
dudaodong
0ddd52225b
Merge branch 'main' of github.com:duke-git/lancet into main
2021-12-28 10:07:33 +08:00
donutloop
3919160e38
Optimized: Capitalize ( #4 )
...
* Use unicode.ToUpper func to convert first letter in string to upper case
letter.
* Preallocate memory with correct length and cap because the final
string is not changing.
2021-12-28 10:04:15 +08:00
dudaodong
40ec5bc0f6
fmt: fix lint issue
2021-12-27 20:40:54 +08:00
dudaodong
99faeccb05
feat: add Intersection, Union, Without func for slice/slice.go
v1.1.0
2021-12-27 19:54:04 +08:00
dudaodong
ad777bc877
feat: add Intersection, Union, Without func for slice/slice.go
2021-12-27 19:47:45 +08:00
dudaodong
589ce7404f
refactor: update painc message
2021-12-27 15:12:18 +08:00
dudaodong
6ab4fca433
fmt: go fmt fileutil/file_test.go and function/function.go
2021-12-26 21:41:46 +08:00
dudaodong
b33a9cbfe3
release v1.0.10
v1.0.10
2021-12-26 21:20:18 +08:00
donutloop
9ad9d1805b
Regex validators: Precompile all known regex patterns ( #3 )
...
Reduce executions time of pattern matching, regex patterns are expensive to
compile at runtime.
2021-12-26 21:16:20 +08:00
dudaodong
0a1386f5a7
release v1.0.9
v1.0.9
2021-12-26 13:57:05 +08:00
Beyond
b5541ea177
Merge pull request #2 from donutloop/slice/Some
...
Some: allocate slice to keep track of unused indexes is not necessary
2021-12-26 11:44:46 +08:00
Marcel Edmund Franke
578b1bba65
Some: allocate slice to keep track unused indexes is not necessary
...
Waste of memory for those unused indexes. It got replaced by a simple
boolean to keep track of it.
2021-12-25 13:04:03 +01:00
dudaodong
3045d56503
release: update readme.file v1.0.8, ParseHttpResponse in netutil/request.go
v1.0.8
2021-12-20 11:43:39 +08:00
dudaodong
f1dbd943aa
refactor: rename ParseResponse to ParseHttpResponse func in netutil/request.go
2021-12-17 17:29:28 +08:00
dudaodong
e87f3b70f0
feat: add ParseResponse func in netutil/request.go
2021-12-17 17:23:18 +08:00
dudaodong
26b59dd56b
update: update go test command in workflows/codecov.yml
v1.0.7
2021-12-14 11:02:19 +08:00
dudaodong
143aba7112
release: update readme file, new feature for functional programming
2021-12-14 10:55:07 +08:00
dudaodong
60f3a72c88
refactor: update Compose func in function.go
2021-12-14 10:29:53 +08:00