8 Commits

Author SHA1 Message Date
Samuel Berthe 18c5a43f79 Style/rename internal rand (#701)
* style: rename internal/rand package to internal/xrand

* doc: internal package readme

* oops
2025-10-05 00:42:41 +02:00
Samuel Berthe 380e1a0ae2 fix(tests): fix flaky time-based tests (#699)
* fix(tests): fix flaky time-based tests

* test: replace time package with a mock
Using a dedicated dependency would have been awesome, but i try to keep this repo with minimal dependencies
2025-10-05 00:34:07 +02:00
Nathan Baulch 1b92b5c7db lint: enable 7 more linters (#686)
* lint: enable and fix perfsprint issues

* lint: enable and fix nolintlint issues

* lint: enable and fix godot issues

* lint: enable and fix thelper issues

* lint: enable and fix tparallel issues

* lint: enable and fix paralleltest issues

* lint: enable and fix predeclared issues
2025-09-25 13:18:25 +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 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
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
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
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