dudaodong
df098392c2
merge main branch
2022-02-18 10:28:47 +08:00
dudaodong
2384b0e51f
docs: fix func link mistake
2022-02-16 14:26:03 +08:00
dudaodong
29d8987909
docs: update readme file
2022-02-16 14:12:42 +08:00
dudaodong
43fb3f1a06
release v1.2.4
2022-02-16 14:10:25 +08:00
dudaodong
5ae746a1f0
rename: rename InsertByIndex -> InsertAt, UpdateByIndex -> UpdateAt, DeleteByIndex -> DeleteAt for release 2.0
2022-02-10 11:25:34 +08:00
dudaodong
1dd826f050
add logo png and update readme file
2022-02-08 14:43:57 +08:00
dudaodong
8b04aa5f31
release v1.2.3 update readme file
2022-02-07 16:35:01 +08:00
dudaodong
0f1d3fb553
docs: fix misspell in readme file
2022-01-30 21:54:24 +08:00
dudaodong
35780d9dc1
update: add DesEcbEncrypt and DesEcbDecrypt comment
2022-01-28 10:53:14 +08:00
dudaodong
c40ac9bb9b
refactor: add error value return for GenerateRsaKey func
2022-01-28 10:51:40 +08:00
dudaodong
0b93fbffd9
fix: fix misspell in readme file
2022-01-27 11:13:19 +08:00
dudaodong
4eaa0a39d5
feat: add FindLast func
2022-01-24 15:22:43 +08:00
dudaodong
89aef977a2
refactor: clean code for slice/slice.go
2022-01-24 11:46:09 +08:00
dudaodong
2612569500
merge: merge main branch and refector slice func with generics
2022-01-24 11:10:12 +08:00
dudaodong
acc8b59387
comment: add comment for Unwrap
2022-01-24 10:24:10 +08:00
dudaodong
8bb102cb6e
release v1.2.2
2022-01-24 10:10:38 +08:00
donutloop
2878d389c8
error: Add unwrap ( #24 )
...
Add a unwrap func helper
* Unwrap if err is nil then it returns a valid value otherwise it panics
2022-01-22 21:25:31 +08:00
dudaodong
0efe2f57c3
merge main
2022-01-19 20:47:47 +08:00
dudaodong
28317a1683
feat: remove ConvertSlice func
2022-01-19 20:41:46 +08:00
dudaodong
8868fcabed
Merge branch 'main' into v2
2022-01-19 17:35:48 +08:00
dudaodong
efa20a97c4
release v1.2.1
2022-01-19 14:58:52 +08:00
dudaodong
261370e30d
fix: os.go/ExecCommand make error the last return value
2022-01-17 16:57:38 +08:00
dudaodong
87da6c6816
Merge branch 'main' into v2
2022-01-17 15:01:38 +08:00
dudaodong
764a6fe107
release v1.2.0
2022-01-17 14:49:20 +08:00
dudaodong
f368854b2d
update text style of readme file
2022-01-17 10:40:41 +08:00
dudaodong
c424b88d40
update style of readme file
2022-01-16 22:17:51 +08:00
Dan Anstis
aeebd63eda
docs(readme): fix convertor import example ( #23 )
2022-01-14 12:33:53 +08:00
dudaodong
d46d12f949
feat: add func ContainSubSlice
2022-01-13 11:52:21 +08:00
dudaodong
e31fb28003
feat: add func ContainSubSlice
2022-01-13 11:00:27 +08:00
dudaodong
fd271fe176
add test passing badge
2022-01-12 11:27:09 +08:00
dudaodong
22798fd750
fix: fix some go report issue
2022-01-12 10:01:48 +08:00
dudaodong
69453eba19
release v1.1.9
2022-01-11 20:42:04 +08:00
dudaodong
3dadfa234b
update: make func comment consistent
2022-01-11 19:33:15 +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
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
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
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
dudaodong
3e9a2b5c59
refactor: refact Filter, ForEach, Map func with generics
2022-01-07 17:53:55 +08:00
donutloop
3905c0bde1
Slice: Add count func ( #15 )
...
Returns the count of matched elements
2022-01-06 20:32:14 +08:00
dudaodong
c7e961704d
Merge branch 'main' of github.com:duke-git/lancet into main
2022-01-06 17:09:43 +08:00
dudaodong
cb7df1b57d
update: add some new feature comments for file and slice
2022-01-06 17:09:01 +08:00
Ahmad Alfy
ad287ed99a
doc: minor spelling mistak ( #14 )
2022-01-05 21:25:21 +08:00
dudaodong
955f2e6de6
update func GetElapsedTime and None comment
2022-01-05 19:44:22 +08:00
donutloop
4aef9d6d22
Slice: Add none func ( #13 )
...
Returns true whether no elements of this slice match the provided predicate
func. Negated form of Every func
2022-01-05 19:38:14 +08:00