Standard library / unicode
unicode.IsPrint()
Tests printable Unicode runes; unlike IsGraphic, excludes non-ASCII space separators. Expected stdout: 'false\n'.
Formal Syntax & Structure
go syntaxgo
func IsPrint(r rune) boolParameters & Attributes
| Name | Type | Description |
|---|---|---|
| r | rune | Unicode code point. |
Return Value
bool
Tests printable Unicode runes; unlike IsGraphic, excludes non-ASCII space separators.
Working Example
Example Snippetgo
package main
import ( "fmt" "unicode")
func main() { fmt.Println(unicode.IsPrint('\u00a0'))}