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

@@ -59,7 +59,7 @@ func IsAllLower(str string) bool {
}
// IsASCII checks if string is all ASCII char.
// Play: todo
// Play: https://go.dev/play/p/hfQNPLX0jNa
func IsASCII(str string) bool {
for i := 0; i < len(str); i++ {
if str[i] > unicode.MaxASCII {
@@ -70,7 +70,7 @@ func IsASCII(str string) bool {
}
// IsPrintable checks if string is all printable chars.
// Play: todo
// Play: https://go.dev/play/p/Pe1FE2gdtTP
func IsPrintable(str string) bool {
for _, r := range str {
if !unicode.IsPrint(r) {