Commit Graph

23 Commits

Author SHA1 Message Date
Samuel Berthe
268215359e fix(string): fix division by zero (#684) 2025-09-25 04:21:56 +02:00
Nathan Baulch
b5e290abe0 fix: more consistent panic strings (#678)
* lint: pin golangci-lint version

* fix: more consistent panic strings

* Update golangci-lint version in workflow

Updated golangci-lint action version to v2.4.

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2025-09-24 21:02:02 +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
52ad90c405 doc: Improve comment for lo.Ellipsis 2025-05-22 13:13:05 +02:00
Samuel Berthe
d91b19f1eb chore: lint 💄 2025-04-26 17:33: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
Nathan Baulch
db0f4d2171 Tidy up (#519) 2024-08-22 01:17:02 +02:00
Samuel Berthe
741cdfdb03 feat(ellipsis): trim after truncating 2024-08-19 00:14:36 +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
mr
1ca9c7b4e5 Update string.go (#496)
* Update string.go

more reasonable

* test
2024-07-17 19:08: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
61209816d1 feat: speed up loops by reducing allocations (#475) 2024-06-28 01:35:57 +02:00
Samuel Berthe
0efce40cf0 lint 2024-06-27 21:05:31 +02:00
Samuel Berthe
e5e4f028e4 feat: adding Elipse (#470) 2024-06-27 15:42:03 +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
Liu Shuang
de3bccf5d0 fix: substring support utf8 character (#327) 2023-03-20 15:14:00 +01:00
Corentin Clabaut
a3c90f1ac4 Add RandomString (#266)
* Add RandomString

* PR update
2022-11-15 23:12:57 +01:00
Samuel Berthe
cc3aa2287b doc(examples): adding go playground examples (string, map, slice, condition, math) 2022-10-03 22:17:15 +02:00
Corentin Clabaut
6126b6497c Implement ChunkString (#188)
Implement ChunkString
2022-07-29 11:38:33 +02:00
Samuel Berthe
94d54a8f47 feat: adding runelength 2022-05-01 00:22:36 +02:00