dudaodong
d491bea263
feat: add BubbleSort and InsertionSort
2022-01-14 17:57:14 +08:00
dudaodong
6f1feb96d6
experimental feature, algorithm/sorter.go try to implements sort function with go generics
2022-01-14 17:01:44 +08:00
dudaodong
d46d12f949
feat: add func ContainSubSlice
2022-01-13 11:52:21 +08:00
dudaodong
e31fb28003
feat: add func ContainSubSlice
v1.1.10
2022-01-13 11:00:27 +08:00
dudaodong
fd271fe176
add test passing badge
2022-01-12 11:27:09 +08:00
dudaodong
6890bbfe05
update: rename workflow
2022-01-12 11:23:51 +08:00
dudaodong
c6fc92a94c
update go version to v1.18
2022-01-12 10:23:04 +08:00
dudaodong
24ae47a12f
remove v2 branch
2022-01-12 10:13:13 +08:00
dudaodong
f4fa790b72
Merge branch 'main' into v2
2022-01-12 10:05:35 +08:00
dudaodong
d8d85efedf
update: add v2 branch
2022-01-12 10:05:21 +08:00
dudaodong
22798fd750
fix: fix some go report issue
2022-01-12 10:01:48 +08:00
dudaodong
ba73847b80
fix: fix some go report issue
2022-01-12 09:57:10 +08:00
dudaodong
69453eba19
release v1.1.9
v1.1.9
2022-01-11 20:42:04 +08:00
dudaodong
907df56f86
update: make func comment consistent
2022-01-11 20:27:06 +08:00
donutloop
f147f78a41
Slice: sort from v2 branch ( #22 )
...
ref: f1d7154179
2022-01-11 20:13:25 +08:00
dudaodong
3dadfa234b
update: make func comment consistent
2022-01-11 19:33:15 +08:00
donutloop
f1d7154179
refactor: sort ( #21 )
...
Removed reverse func because it use to much cpu and add test cas for asc sort
2022-01-11 19:24:36 +08:00
dudaodong
dc47b9ce98
fix: fix confict in readme file
2022-01-11 18:15:09 +08:00
dudaodong
6e626851cf
merge #pr20
2022-01-11 18:12:57 +08:00
donutloop
c906d8aea7
Slice: group by and without v2 ( #20 )
...
* Slice: group by and without v2
Migrate from reflection to generic
* update doc
2022-01-11 18:11:01 +08:00
dudaodong
e5e4e09308
comment without func
2022-01-11 18:10:21 +08:00
dudaodong
7ed173849a
refactor: rewrite DeleteByIndex, InsertByIndex, UpdateByIndex and Without func with generics
2022-01-11 18:08:22 +08:00
donutloop
24c0d95112
Slice: reverse and shufffle v2 ( #19 )
...
* Slice: reverse and shufffle v2
Migrate from reflection to generic form
Note: after migration, old reverse must be removed
* Suffle test: remove reflection calls
* Reverse test: change name of test
2022-01-10 19:52:23 +08:00
dudaodong
e9fed34729
fmt: slice.go
2022-01-10 10:27:20 +08:00
dudaodong
9caefdb67d
fmt: slice.go
2022-01-10 10:24:33 +08:00
dudaodong
681d5b6bdf
update comment for Count func
2022-01-09 22:17:50 +08:00
dudaodong
b0e9758e0d
Merge branch 'v2' of github.com:duke-git/lancet into v2
2022-01-09 22:15:18 +08:00
donutloop
7b9a8a55e7
Slice: CountV2 ( #18 )
...
Use generic instead of reflection
2022-01-09 22:15:03 +08:00
dudaodong
44ac82e8b8
refactor: rewrite some slice functions with go generics
2022-01-09 22:14:46 +08:00
dudaodong
c4b4cb1173
merge master: rewrite all unit test functions with assert
2022-01-09 18:33:00 +08:00
dudaodong
bbfc5b7060
delete file utils.go and fix some misspel
2022-01-09 16:12:26 +08:00
dudaodong
1f45937190
refactor: rewrite all unit test functions with assert
2022-01-09 16:04:33 +08:00
dudaodong
52c5a91606
refactor: rewrite all unit test functions with assert
2022-01-09 15:57:21 +08:00
dudaodong
49f62c3550
refactor: rewrite all unit test functions with assert
2022-01-09 15:53:30 +08:00
dudaodong
23701e6998
refactor: rewrite all unit test functions with assert
2022-01-09 15:49:52 +08:00
dudaodong
1199c30ef3
refactor: rewrite all unit test functions with assert
2022-01-09 15:48:29 +08:00
dudaodong
b0e17c7bc4
refactor: rewrite all unit test functions with assert
2022-01-09 15:39:50 +08:00
dudaodong
d3525dfe8f
refactor: rewrite all unit test functions with assert
2022-01-09 15:34:17 +08:00
dudaodong
9da7115169
refactor: rewrite all unit test functions with assert
2022-01-09 15:10:56 +08:00
dudaodong
9cb9aa2f2f
refactor: rewrite all unit test functions with assert
2022-01-09 14:46:17 +08:00
dudaodong
e4cd7dad35
refactor: rewrite all unit test functions with assert
2022-01-09 14:31:31 +08:00
dudaodong
31e08197d4
remove file comment
2022-01-09 14:03:46 +08:00
dudaodong
642d0b8077
refactor: rewrite all unit test functions with assert
2022-01-09 14:01:51 +08:00
dudaodong
25b2ae6b98
fix: return empty byte slice when rand bytes lenght less 1
2022-01-09 14:00:23 +08:00
dudaodong
65719515bd
feat: add LessOrEqual and GreaterOrEqual
2022-01-09 13:58:27 +08:00
dudaodong
3ffd81a98a
refactor: rewrite all unit test functions with assert
2022-01-09 13:51:07 +08:00
dudaodong
f490ef2404
refactor: rewrite all unit test functions with assert
2022-01-09 13:30:08 +08:00
dudaodong
3438f3b18a
refactor: rewrite all unit test functions with assert
2022-01-09 13:07:49 +08:00
dudaodong
73f4ae7b35
refactor: add internal/assert.go and rewrite all unit funcs string_test.go with assert
2022-01-08 21:58:35 +08:00
donutloop
30d798366b
Slice: find v2 ( #17 )
...
* If slice len is zero then return false
* Convert find to generic form.
* If return T is nil then no items matched the predicate func
2022-01-07 20:19:27 +08:00