17 Commits

Author SHA1 Message Date
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
Samuel Berthe
268215359e fix(string): fix division by zero (#684) 2025-09-25 04:21:56 +02:00
Nathan Baulch
7170719ec0 lint: unit test improvements (#674)
* lint: pin golangci-lint version

* lint: use is.Empty where possible

* lint: use is.ElementsMatch for unsorted slices

* lint: remove redundant is.Len assertions

* lint: use is.Zero to assert zero structs

* fix: misc assertion issues

* lint: more consistent test case pattern

* fix: reversed expect/actual assert values

* lint: use is.ErrorIs and is.EqualError for errors

* Update golangci-lint version in workflow

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2025-09-24 21:02:52 +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
76b76a7adb lint: Apply testifylint linter recommendations (#669) 2025-09-20 00:50:00 +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
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
Samuel Berthe
9ec076e4f6 test: adding some tests to Substring (see #288) 2023-03-20 17:59:52 +01: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
31f3bc3a85 test: parallel tests everywhere (#228) 2022-10-02 21:38:26 +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