Commit Graph

522 Commits

Author SHA1 Message Date
Samuel Berthe
2876510f3c CrossJoinX + CrossJoinByX 2025-01-25 00:19:26 +01:00
Samuel Berthe
c4ae516f73 fix doc 2025-01-24 23:04:38 +01:00
nicklaus-dev
5909b6b856 feat: add UniqMap (#527) 2025-01-24 23:04:38 +01:00
SnowOnion
3bc8722b6d docs: clarify Empty returns zero value (#543)
* docs: clarify `Empty` returns zero value

https://go.dev/ref/spec#The_zero_value does not define "empty value". It informally mentions "empty value", meaning (non-nil && 0-length) slice or map.

> Note that the zero value for a slice or map type is not the same as an initialized but empty value of the same type.

* docs: other "empty value" -> "zero value"

---------

Co-authored-by: xuanhong <litianchi@papegames.net>
2025-01-24 23:04:38 +01:00
Ali Sunjaya
337e739cd7 doc: fix go dev example code for FromSlicePtrOr (#544) 2025-01-24 23:04:38 +01:00
Aria
1d50016bca feat: add (Min|Max)Index(By) (#569) 2025-01-24 23:04:38 +01:00
Yishuai Li
1010778153 fix(parallel): order of GroupBy and PartitionBy (#572) 2025-01-24 23:04:38 +01:00
Samuel Berthe
5dff357c6d Update LICENSE 2025-01-24 23:04:37 +01:00
Jason N. White
b557d640f7 Update LICENSE, fix license year (#571)
Signed-off-by: JasonnnW3000 <sufssl04@gmail.com>
2025-01-24 23:04:37 +01:00
dependabot[bot]
90c404fda7 chore(deps): bump golang.org/x/text from 0.20.0 to 0.21.0 (#568)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-24 23:04:29 +01:00
John Devitt
a2bed0c99c feat: add CrossJoin function 2024-12-07 13:09:24 +00:00
dependabot[bot]
efef0ffb6e chore(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#563)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-25 14:29:31 +01:00
dependabot[bot]
d8ada35f4c chore(deps): bump codecov/codecov-action from 4 to 5 (#560)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-18 10:27:36 +01:00
dependabot[bot]
c74d8e5957 chore(deps): bump github.com/thoas/go-funk from 0.9.1 to 0.9.3 (#556)
Bumps [github.com/thoas/go-funk](https://github.com/thoas/go-funk) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/thoas/go-funk/releases)
- [Changelog](https://github.com/thoas/go-funk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/thoas/go-funk/compare/v0.9.1...v0.9.3)

---
updated-dependencies:
- dependency-name: github.com/thoas/go-funk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 12:31:39 +01:00
dependabot[bot]
a393be6727 chore(deps): bump actions/setup-go from 2 to 5 (#548)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2...v5)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 23:11:45 +01:00
dependabot[bot]
8d18bd6caf chore(deps): bump actions/checkout from 2 to 4 (#549)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 23:11:30 +01:00
dependabot[bot]
1e3f882165 chore(deps): bump codecov/codecov-action from 2 to 4 (#550)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 23:11:22 +01:00
dependabot[bot]
0f8573ef3e chore(deps): bump golangci/golangci-lint-action from 3 to 6 (#551)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v6)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 23:11:14 +01:00
dependabot[bot]
e4384ed468 chore(deps): bump softprops/action-gh-release from 1 to 2 (#552)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 23:02:01 +01:00
dependabot[bot]
ed65874231 chore(deps): bump golang.org/x/text from 0.16.0 to 0.20.0 (#553)
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.16.0 to 0.20.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.16.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 23:01:50 +01:00
dependabot[bot]
fc4ebb4896 chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.9.0 (#554)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-10 23:01:42 +01:00
Samuel Berthe
6385b1c966 Create dependabot.yml 2024-11-09 19:02:22 +01:00
snamiki1212
407b62d3f1 docs: fix example README, add playground (FromSlicePtrOr) (#541)
* doc: update FromSlicePtrOr example in README

* doc: add playground for FromSlicePtrOr

* Update README.md

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2024-10-01 18:54:43 +02:00
pigwantacat
a6a53e1fb9 refactor:refactor RandomString function (#524)
* refactor:refactor RandomString function

* feat:Upgrade math/rand to math/rand/v2

* Update string.go

Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>

* feat: improve comments for RandomString function

* Update string.go

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>

* feat:Upgrade math/rand/v2 to github.com/samber/lo/internal/rand

* Update string.go

* Update ordered_go118.go

---------

Co-authored-by: zhuhebin <zhuhebin@fengtaisec.com>
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2024-09-20 00:16:24 +02:00
GuyArye-RecoLabs
fbc7f33e31 Update README.md (#537)
Makes more sense to check in the Some an example when some of the values are present but not every one of them
2024-09-19 23:54:29 +02:00
jiz4oh
bc0037c447 Update README.md (#535) 2024-09-16 08:10:57 +02:00
Samuel Berthe
4ebf484945 [Snyk] Security upgrade golang from 1.21.12 to 1.22.6 (#530)
* fix: Dockerfile to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DEBIAN12-CURL-7575306
- https://snyk.io/vuln/SNYK-DEBIAN12-CURL-7575306
- https://snyk.io/vuln/SNYK-DEBIAN12-CURL-7575306
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203
- https://snyk.io/vuln/SNYK-DEBIAN12-GIT-6846203

* Update Dockerfile

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2024-09-06 15:29:48 +02:00
Nathan Baulch
db0f4d2171 Tidy up (#519) 2024-08-22 01:17:02 +02:00
Samuel Berthe
edd7060c67 Delete CHANGELOG.md 2024-08-21 00:46:14 +02:00
Samuel Berthe
5c3d4019a1 Update README.md 2024-08-20 18:50:24 +02:00
Fred Muya
1f5e41bb61 Fix Link to Duration Doc Section (#521) 2024-08-20 18:45:59 +02:00
Samuel Berthe
3dd51e932f Update README.md 2024-08-20 18:43:38 +02:00
Xin Hao
a9e9a988db docs: typo (#522) 2024-08-20 18:43:01 +02:00
Samuel Berthe
741cdfdb03 feat(ellipsis): trim after truncating 2024-08-19 00:14:36 +02:00
Samuel Berthe
fd136b8a23 lint 💄 2024-08-18 21:40:25 +02:00
Samuel Berthe
f3ee53b393 lint 💄 2024-08-18 21:30:09 +02:00
Samuel Berthe
38e0245ce9 doc: better documentation about dependencies 2024-08-18 20:40:15 +02:00
Samuel Berthe
40f630f33a feat(ellipsis): trim before truncating 2024-08-18 16:36:51 +02:00
Samuel Berthe
de8e023551 fix: rename Elipse to Ellipsis 2024-08-18 16:33:20 +02:00
luxcgo
e74ad7cf1c fix: change examples for MapKeys and MapValues (#341) 2024-08-17 20:43:21 +02:00
Samuel Berthe
da6eb9d678 💄 lint 2024-08-11 19:01:36 +02:00
Samuel Berthe
cd0bc21b88 preallocate stuff and more tests 2024-08-11 18:47:56 +02:00
Samuel Berthe
d9d3e3fb05 feat: preallocate output for lo.Keys and lo.Values 2024-08-11 18:28:42 +02:00
Sianao Luo
1603a848b0 Update foreachwhile readme.md (#508)
* update readme.md for lo.ForEachWhile play and example code

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2024-08-10 01:25:12 +02:00
shivam-bhalla
d8e5707487 Keys+Values: accept multiple maps (vaargs) - Adding UniqKeys+UniqValues (#503)
* added Keys: accept multiple maps (vaargs)

* added test:review comment fix

* added sort before asserting :review comment fix

* added sort before asserting :review comment fix

* output unique keys

* added map functions"

* added map_test.go and README.md

* added anchor in README.md

* added breakline in README.md

* fix README.md

* fix README.md and added test

* fix comments

* fix comments

* fix comments

* fix comments

* fix comments

* Update README.md

* small typo

* Update README.md

* Update README.md

* Update map.go

* Update map_test.go

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2024-07-29 05:37:41 +02:00
Samuel Berthe
cb150f5d38 feat: adding FromSlicePtrOr (#506) 2024-07-26 07:56:32 +02:00
Masakazu Ohtsuka
aa609e4f47 feat: add FromSlicePtr (#217)
* feat: add FromSlicePtr

* Update README.md

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2024-07-26 07:51:40 +02:00
YAMAMORI, Akihiro
df28bdd91b Fix documentation for Duration3 (#502)
Duration3 needs 4 assignments to call.

To match`TryOf` documentation,  `str, nbr, err, duration` names are used for the assignments.
2024-07-21 19:18:48 +02:00
ColeC
6ade78cf90 Docs: Wrong method reference and output in readme (#497) 2024-07-17 19:09:40 +02:00
mr
1ca9c7b4e5 Update string.go (#496)
* Update string.go

more reasonable

* test
2024-07-17 19:08:46 +02:00