1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

doc: add play ground demo

This commit is contained in:
dudaodong
2023-04-03 10:33:57 +08:00
parent e29b56c3c3
commit 8bdd46bda4
5 changed files with 22 additions and 7 deletions

View File

@@ -362,7 +362,7 @@ func WordCount(s string) int {
}
// RemoveNonPrintable remove non-printable characters from a string.
// Play: todo
// Play: https://go.dev/play/p/og47F5x_jTZ
func RemoveNonPrintable(str string) string {
result := strings.Map(func(r rune) rune {
if unicode.IsPrint(r) {