Golang strconv.IsPrint() function example
package strconv
Golang strconv.IsPrint() function usage example
package main
import (
"fmt"
"strconv"
)
func main() {
ok := strconv.IsPrint('γ')
fmt.Println("Is printable by Golang? : ", ok)
ok = strconv.IsPrint('こ')
fmt.Println("Is printable by Golang? : ", ok)
ok = strconv.IsPrint('ś')
fmt.Println("Is printable by Golang? : ", ok)
ok = strconv.IsPrint(rune('a'))
fmt.Println("Is printable by Golang? : ", ok)
}
Output :
Is printable by Golang? : true
Is printable by Golang? : true
Is printable by Golang? : true
Is printable by Golang? : true
Reference :
Advertisement
Something interesting
Tutorials
+12.3k Golang : How to display image file or expose CSS, JS files from localhost?
+7.7k Golang : Mapping Iban to Dunging alphabets
+5.9k AWS S3 : Prevent Hotlinking policy
+11.3k Golang : Post data with url.Values{}
+17.9k Golang : Qt image viewer example
+5.3k Swift : Convert string array to array example
+15.3k Golang : How to get Unix file descriptor for console and file
+6.8k Get Facebook friends working in same company
+8.7k Golang : How to join strings?
+18.4k Golang : How to remove certain lines from a file
+8.8k Golang : On lambda, anonymous, inline functions and function literals
+24.1k Golang : Upload to S3 with official aws-sdk-go package