23 Commits

Author SHA1 Message Date
RelicOfTesla eb9719c674 Must support Custom error handler. (#752)
* Custom error type.

* remove  "github.com/pkg/errors" depend

* disable some Test Parallel

* fix test code in go 1.18

* golangcli-lint warning fix

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2026-01-08 18:07:00 +01:00
RelicOfTesla 8590d84fcd Support Custom Assert (#755)
* custom Assert

* disable Test Parallel

* golangcli-lint warning fix

* Document custom handler for lo.Assert

Added a section on creating a custom handler for lo.Assert.

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2026-01-08 02:23:47 +01:00
Nathan Baulch 52d31f788f lint: fix CI warnings and avoid named return parameters (#682) 2025-09-25 03:44:33 +02:00
Nathan Baulch 3e11f11781 docs: grammar improvements (#673)
* lint: pin golangci-lint version

* docs: grammar fixes

* docs: remove "truthy" terminology

* docs: remove "array" terminology

* docs: grammar fixes

* Update .github/workflows/lint.yml

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2025-09-24 20:59:41 +02:00
Samuel Berthe 3bc887c57c doc: adding go playground examples 2025-09-23 14:54:30 +02:00
Samuel Berthe 9c8308ffda Style add golangci config (#670)
* style(lint): gofumpt

* style(lint): errcheck

* style(lint): revive

* style(lint): gocritic

* style(lint): forcetypeassert

* style(lint): add .golangci.yml

* oops
2025-09-20 01:37:51 +02:00
Samuel Berthe 49f24de919 style: merge assertion.go and errors.go 2025-06-01 16:19:29 +02:00
Samuel Berthe f3ee53b393 lint 💄 2024-08-18 21:30:09 +02:00
Samuel Berthe 0a145c7cc7 style: replace interface{} by any 2024-06-30 03:34:15 +02:00
d-enk 05a9bc93bd style: no extra any type parameter (#429) 2024-06-27 13:43:43 +02:00
Samuel Berthe 7887963db8 feat: name each callback/iteratee/predicate arguments in order to improve autocompletion
closes #242
2022-10-13 22:25:33 +02:00
Samuel Berthe cce64116f4 lint 2022-10-06 23:15:50 +02:00
Samuel Berthe c6b8b1e628 doc: adding examples 2022-10-06 22:46:47 +02:00
Corentin Clabaut 8e8ccc1047 Add function Validate that creates an error when a condition is not met (#221) 2022-10-04 21:28:29 +02:00
Samuel Berthe bcb54ccf0b Adding TryOr and TryOrX (#229)
feat: adding TryOr and TryOrX
2022-10-02 23:10:31 +02:00
Samuel Berthe edda23923b feat: adding ErrorsAs 2022-10-02 21:51:02 +02:00
Samuel Berthe c8a13bbf49 doc: explain custom panic message for lo.Must helpers 2022-07-03 20:59:32 +02:00
Corentin Clabaut 3d6faf1096 Add context to Must panic message (#140) 2022-07-03 20:46:03 +02:00
Samuel Berthe d54996c157 feat(lo.Try0): remove type definition 2022-05-02 14:51:02 +02:00
wirekang a894d7cd5c Merge branch 'master' of https://github.com/samber/lo into feat-must-any 2022-04-22 19:33:38 +09:00
wirekang 6d64c8b195 Fix typo 2022-04-22 18:51:59 +09:00
wirekang 2d0a57d527 Fix Must to receives 'err any' #99 2022-04-22 02:24:22 +09:00
Samuel Berthe 986f172793 feat(must): adding must0, must1, must2, must3, must4, must5 and must6 2022-04-11 21:49:26 +02:00