Standard library / unicode
unicode.IsSpace()
Tests Unicode White Space, including NBSP and tab. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func IsSpace(r rune) boolParameters & Attributes
| Name | Type | Description |
|---|---|---|
| r | rune | Unicode code point. |
Return Value
bool
Tests Unicode White Space, including NBSP and tab.
Working Example
Example Snippetgo
package main
import ( "fmt" "unicode")
func main() { fmt.Println(unicode.IsSpace('\u00a0'))}