1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-03-01 00:35:28 +08:00
Commit Graph

764 Commits

Author SHA1 Message Date
dudaodong 8868fcabed Merge branch 'main' into v2 2022-01-19 17:35:48 +08:00
dudaodong efa20a97c4 release v1.2.1 v1.2.1 2022-01-19 14:58:52 +08:00
dudaodong 25ef78bc64 refactor: Md5File for reading large file 2022-01-19 14:34:11 +08:00
dudaodong 261370e30d fix: os.go/ExecCommand make error the last return value 2022-01-17 16:57:38 +08:00
dudaodong dfbb9e30e0 feat: algorithm package, BinarySearch and BinaryIterativeSearch functions 2022-01-17 15:36:48 +08:00
dudaodong b22be7cade refactor: change var name low -> lowIndex, high -> highIndex 2022-01-17 15:11:33 +08:00
dudaodong 87da6c6816 Merge branch 'main' into v2 2022-01-17 15:01:38 +08:00
dudaodong 764a6fe107 release v1.2.0 v1.2.0 2022-01-17 14:49:20 +08:00
dudaodong f3749c52b9 feat: add system package 2022-01-17 11:54:03 +08:00
dudaodong f368854b2d update text style of readme file 2022-01-17 10:40:41 +08:00
dudaodong 912f7052a3 gofmt 2022-01-17 10:29:42 +08:00
dudaodong c424b88d40 update style of readme file 2022-01-16 22:17:51 +08:00
dudaodong e6f9b0954c feat: add CountSort 2022-01-16 17:20:20 +08:00
dudaodong 98e861cf3b feat: add QuickSort, HeapSort, and MergeSort functions 2022-01-16 16:52:17 +08:00
dudaodong 43e0ca7edf feat: add ShellSort 2022-01-14 18:17:46 +08:00
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
Dan Anstis aeebd63eda docs(readme): fix convertor import example (#23) 2022-01-14 12:33:53 +08:00
dudaodong 22b3c4dd42 feat: add validator functions, IsAllUpper, IsAllLower, ContainUpper, ContainLower, ContainLetter, IsJSON and IsPort 2022-01-13 20:19:41 +08:00
dudaodong bd976642f6 feat: add try package for executing a function repeatedly 2022-01-13 16:18:49 +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: https://github.com/duke-git/lancet/commit/f1d7154179a4d94472bee9703097d78e6c37e9a7
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