dudaodong
8784be1583
feat: add Pad function
2023-02-19 12:37:26 +08:00
dudaodong
84cd68de7f
fix: fix bugs of PadEnd and PadStart
2023-02-19 12:34:39 +08:00
dudaodong
c85d910044
add playground demo
2023-01-09 11:02:41 +08:00
dudaodong
278733d3d1
Todo: add todo for playground demo of function
2023-01-07 18:27:07 +08:00
dudaodong
1dc5e8ac23
feat: add Substring function
2022-12-29 19:55:40 +08:00
dudaodong
49a460eef8
doc: update document and add playgound example for strutil package
2022-12-27 16:57:32 +08:00
dudaodong
a58e52e53c
test: add example function for strutil package
2022-12-27 15:40:51 +08:00
dudaodong
2c57266f8e
test: update some test functions
2022-12-15 15:22:01 +08:00
dudaodong
985c9a5d9a
refactor: refact CamelCase function
2022-12-14 21:27:29 +08:00
dudaodong
5cfb11f036
feat: fix and add SnakeCase/UpperSnakeCase
2022-12-14 21:17:30 +08:00
dudaodong
5b3d48a1e7
feat: fix and add KebabCase/UpperKebabCase
2022-12-14 21:09:22 +08:00
dudaodong
d0576e028f
clean code
2022-12-13 19:52:37 +08:00
dudaodong
76bdec2b54
test: add cases for Capitalize
2022-12-13 16:16:16 +08:00
dudaodong
fa20aba3a7
fix: fix CamelCase function bug
2022-12-13 14:23:32 +08:00
dudaodong
7a4a429e23
test: add cases for Capitalize
2022-12-12 21:11:19 +08:00
dudaodong
ab0716a472
refactor: change ReverseStr to Reverse in strutil package
2022-08-24 10:35:18 +08:00
dudaodong
44370aef5e
refactor: change variable name to
2022-07-18 15:52:51 +08:00
franktz
84a69d1fa5
feat: strutil.SplitEx. Split a given string whether the result contains empty string ( #31 )
...
Co-authored-by: Frank.Town <tangzhi21@sfmail.sf-express.com >
2022-05-11 15:19:53 +08:00
dudaodong
50c6e51393
upgrade go module v2
2022-03-17 10:57:35 +08:00
dudaodong
c939b26cb8
refactor: interface{} -> any
2022-03-16 18:41:40 +08:00
dudaodong
b48155c249
refactor: rename files *_util.go to *_internal.go
2022-02-19 21:52:10 +08:00
dudaodong
41685022c0
refactor: rename files *_util.go to *_internal.go
2022-02-19 21:51:58 +08:00
dudaodong
ca88687f3d
feat: add UpperFirst func
2022-01-22 18:55:41 +08:00
dudaodong
3438f3b18a
refactor: rewrite all unit test functions with assert
2022-01-09 13:07:49 +08:00
dudaodong
73f4ae7b35
refactor: add internal/assert.go and rewrite all unit funcs string_test.go with assert
2022-01-08 21:58:35 +08:00
dudaodong
97e0789ea4
feat: add Wrap and Unwrap func
2022-01-03 20:11:15 +08:00
dudaodong
c625a88067
refactor: rename package 'utils' to 'internal'
2021-12-31 11:36:11 +08:00
donutloop
ab012f2545
LowerFirst: use slicing and utf8 func tools ( #5 )
...
Replace looping with slicing and utf8 func tools operations.
2021-12-28 19:25:44 +08:00
donutloop
3919160e38
Optimized: Capitalize ( #4 )
...
* Use unicode.ToUpper func to convert first letter in string to upper case
letter.
* Preallocate memory with correct length and cap because the final
string is not changing.
2021-12-28 10:04:15 +08:00
dudaodong
3254591ab9
publish lancet
2021-11-28 21:28:23 +08:00