blob: 7b8dcb7303bdb4e6c67ff2948a27f17051f42d7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
title: strings.ContainsNonSpace
description: Reports whether the given string contains any non-space characters as defined by Unicode.
categories: []
keywords: []
params:
functions_and_methods:
aliases: []
returnType: bool
signatures: [strings.ContainsNonSpace STRING]
aliases: [/functions/strings.containsnonspace]
---
Whitespace characters include `\t`, `\n`, `\v`, `\f`, `\r`, and characters in the [Unicode Space Separator] category.
[Unicode Space Separator]: https://www.compart.com/en/unicode/category/Zs
```go-html-template
{{ strings.ContainsNonSpace "\n" }} → false
{{ strings.ContainsNonSpace " " }} → false
{{ strings.ContainsNonSpace "\n abc" }} → true
```
|