summaryrefslogtreecommitdiff
path: root/lib/strings/string_example_test.go
AgeCommit message (Collapse)Author
2022-08-03lib/strings: clean up test codesShulhan
Changes, * Use test.Data for test that require longer text input and output * Replace variable declaration ":=" with explicit one. * Use literal string
2021-09-25lib/strings: update comment and example of TrimAlnumShulhan
2021-09-25lib/strings: add function AlnumShulhan
The Alnum remove non alpha-numeric character from text and return it. Its accept the string to be cleanup and boolean parameter withSpace. If withSpace is true then white space is allowed, otherwise it would also be removed from text.
2020-04-23strings: add white space to Split exampleShulhan
Show that the Split function will split the string no matter how many spaces in them.
2019-10-22strings: fix the logic of SplitShulhan
2019-05-25strings: move the Uniq function to strings.goShulhan
2018-09-17Merge package "github.com/shuLhan/tekstus", part 2/3Shulhan