samber
d0d3fc7b13
bump v1.45.0
v1.45.0
2024-07-13 14:42:29 +00:00
Timur Polukeev
34537d5291
feat: adding EarliestBy and LatestBy functions ( #489 )
2024-07-13 16:41:15 +02:00
Samuel Berthe
d93dd9a2d7
fix: Dockerfile to reduce vulnerabilities ( #487 )
...
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-PYTHON311-3325304
- https://snyk.io/vuln/SNYK-DEBIAN12-PYTHON311-3325304
- https://snyk.io/vuln/SNYK-DEBIAN12-PYTHON311-5853785
- https://snyk.io/vuln/SNYK-DEBIAN12-SYSTEMD-6277507
- https://snyk.io/vuln/SNYK-DEBIAN12-SYSTEMD-6277507
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2024-07-04 08:32:21 +02:00
Samuel Berthe
8d3ddcfa82
Update README.md
2024-07-02 13:56:11 +02:00
Patryk Małek
57c2d6d4ea
perf: preallocate in Assign ( #484 )
2024-06-30 14:40:46 +02:00
Samuel Berthe
3b29b7d918
feat: upgrade to math/rand/v2 ( #483 )
...
* feat: upgrade to math/rand/v2
* lint: silent warning
2024-06-30 03:54:55 +02:00
Samuel Berthe
0a145c7cc7
style: replace interface{} by any
2024-06-30 03:34:15 +02:00
Samuel Berthe
9405c90405
chore: adding issue template ( #481 )
2024-06-30 02:18:13 +02:00
Owen Gong
52e17faeec
Added DropByIndex helper for slice ( #398 )
...
* added DropByIndex helper
---------
Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr >
2024-06-30 00:38:34 +02:00
Samuel Berthe
93686db8b5
feat: preserve type alias of slices and maps (see #365 )
2024-06-30 00:08:47 +02:00
Samuel Berthe
3ba93a16cc
feat: preserve type alias of slices and maps (see #365 )
2024-06-30 00:04:08 +02:00
Felipe Gasper
de419c7571
Make Filter() preserve type. ( #365 )
...
* Update slice.go
* add test
2024-06-29 23:33:19 +02:00
Samuel Berthe
2ec43f41f4
Revert "Add new method Concat ( #376 )" ( #479 )
...
This reverts commit 940ded8b03
.
2024-06-29 22:41:09 +02:00
Jason Zhang
940ded8b03
Add new method Concat ( #376 )
...
* Add new method Concat
---------
Co-authored-by: Zhang Jie (Jason) <jie.zhang@grabtaxi.com >
Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr >
2024-06-29 21:53:58 +02:00
wick
fe16ff7d23
Add slice Splice an element or multiple elements at index i. ( #371 )
...
* Add slice Splice an element or multiple elements at index i.
* Update README.md
* Update slice.go
* Update slice.go
* Update README.md
* Update slice_test.go
---------
Co-authored-by: wenlingang <lingang.wen@longbridge.sg >
Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr >
2024-06-29 20:25:42 +02:00
Trim21
42a90a0c7b
remove golang.org/x/exp
since it doesn't follow go 1 compatibility promise ( #478 )
...
* fix
* mod tidy
* remove test
* redirect cmp.Ordered
* fix
* fix
* fix
2024-06-29 18:03:44 +02:00
Samuel Berthe
89ca7c6e61
fix tests
2024-06-28 22:03:04 +02:00
Samuel Berthe
263c266328
Adding lo.WaitFor ( #269 )
...
* feat(concurrency): adding lo.WaitFor
2024-06-28 22:00:52 +02:00
Samuel Berthe
33853f5d82
feat: adding HasKey ( #477 )
...
* feat: adding HasKey
2024-06-28 21:53:35 +02:00
Milo
7cce15b3d5
perf: Optimize the performance of union method, avoid repeated expansion ( #397 )
...
Co-authored-by: 逍遥 <caowenbo@shizhuang-inc.com >
2024-06-28 19:24:57 +02:00
Samuel Berthe
07e3675115
fix: Dockerfile to reduce vulnerabilities ( #476 )
...
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133
- https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133
- https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133
- https://snyk.io/vuln/SNYK-DEBIAN11-GLIBC-5927133
- https://snyk.io/vuln/SNYK-DEBIAN11-NGHTTP2-5953384
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2024-06-28 18:26:20 +02:00
Samuel Berthe
61209816d1
feat: speed up loops by reducing allocations ( #475 )
2024-06-28 01:35:57 +02:00
guanming
a966a64cc6
Refactor Contains function to improve performance by using index iteration over collection ( #428 )
...
Co-authored-by: 关明 <guanming@ziipin.com >
2024-06-28 01:04:51 +02:00
Taehyung Lee
0f865a30f8
fix README.md. same meaning but different expression in comment of Unpack2 ( #406 )
2024-06-28 01:00:38 +02:00
Samuel Berthe
9f52970974
fix readme
2024-06-28 00:47:55 +02:00
Samuel Berthe
5aa64ef280
feat: adding LastOrEmpty and LastOr ( #474 )
2024-06-28 00:46:42 +02:00
Alireza Kiani
a94098f9b0
Add First and FirstOrZeroValue functions ( #451 )
...
* feat: add first and firstOrZeroValue functions
* doc: update readme for First and FirstOrZeroValue functions
* feat: follow convention for return items and reuse base First function and add FirstOr
* doc: update documentation for First methods
2024-06-28 00:39:16 +02:00
Gustavo Okuyama
c4d8094a42
feat(type_manipulation): add Nil ( #383 )
...
Co-authored-by: Gustavo Okuyama <gustavo.okuyama@ifood.com.br >
2024-06-27 23:38:37 +02:00
Samuel Berthe
0efce40cf0
lint
2024-06-27 21:05:31 +02:00
Samuel Berthe
ce9dfb2dad
Update lint.yml
2024-06-27 20:40:11 +02:00
Samuel Berthe
80bb7cefc6
feat: adding RejectMap ( #473 )
2024-06-27 16:17:40 +02:00
Samuel Berthe
91b5d9480e
feat: adding FilterReject ( #472 )
2024-06-27 16:12:34 +02:00
Samuel Berthe
20468b731a
feat: adding duration ( #471 )
2024-06-27 16:11:07 +02:00
Samuel Berthe
c23c040774
feat: adding Earliest and Latest ( #468 )
2024-06-27 15:42:18 +02:00
Samuel Berthe
9999d6b13d
feat: adding CoalesceOrEmpty ( #469 )
2024-06-27 15:42:12 +02:00
Samuel Berthe
e5e4f028e4
feat: adding Elipse ( #470 )
2024-06-27 15:42:03 +02:00
Samuel Berthe
3da41985ce
improve doc
2024-06-27 15:18:30 +02:00
Samuel Berthe
92db86fea1
more tests
2024-06-27 15:13:04 +02:00
apriil15
7bbea5482e
fix: should use type int64 for strconv.FormatInt ( #435 )
2024-06-27 14:06:04 +02:00
Samuel Berthe
96c7f9c1df
Update README.md
2024-06-27 13:56:10 +02:00
invzhi
b23221e613
doc: correct IsNil link for pkg.go.dev ( #418 )
2024-06-27 13:48:18 +02:00
Usman Ahmed
97074eeae7
Adding Mean and MeanBy ( #414 )
...
* feat: create Mean for ints and floats
* feat: create MeanBy for ints and floats
* chore: add example tests for mean Mean and MeanBy
2024-06-27 13:45:28 +02:00
d-enk
05a9bc93bd
style: no extra any type parameter ( #429 )
2024-06-27 13:43:43 +02:00
jiro
e9f46c2d73
chore: test on multi go versions ( #445 )
2024-06-27 13:19:34 +02:00
eiixy
266436bb40
feat: add string conversion functions ( #466 )
...
* feat: add string conversion functions
* fix: fix `Capitalize`, update tests
* fix: fix `Capitalize`, update tests
* update README.md
* update tests
* update `Capitalize`
* style: unify coding style
2024-06-27 12:56:08 +02:00
Samuel Berthe
a66bf34300
proposal: adding zipby + unzipby ( #449 )
...
* feat: adding zipby + unzipby
* Update README.md
2024-06-27 12:52:42 +02:00
Ian Mikhailov
8c0dc3cd91
[master] ToSlicePtr: improve speed ( #465 )
...
Co-authored-by: Yan Mikhaylov Andreevich <myan@ozon.ru >
2024-06-27 12:42:21 +02:00
Eric Leblanc
9f99f74053
Use map indexing to speed up PickByKeys and OmitByKeys ( #447 )
2024-06-26 12:31:24 +02:00
Paweł Słomka
71d834120d
docs: update description for FindOrElse ( #370 )
...
* docs: update description for FindOrElse
* Update README.md
---------
Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr >
2023-12-20 00:50:08 +01:00
Ikko Eltociear Ashimine
46aca3d32c
Fix typo in README.md ( #369 )
...
intializations -> initializations
2023-12-20 00:48:27 +01:00