https://github.com/chai2010/spacestring
space string contains more than 1 space characters
https://github.com/chai2010/spacestring
Last synced: 5 months ago
JSON representation
space string contains more than 1 space characters
- Host: GitHub
- URL: https://github.com/chai2010/spacestring
- Owner: chai2010
- License: bsd-3-clause
- Created: 2018-12-18T06:59:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-31T14:57:18.000Z (over 5 years ago)
- Last Synced: 2025-02-23T03:28:15.333Z (5 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/chai2010/spacestring
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
- *赞助 BTC: 1Cbd6oGAUUyBi7X7MaR4np4nTmQZXVgkCW*
- *赞助 ETH: 0x623A3C3a72186A6336C79b18Ac1eD36e1c71A8a6*
- *Go语言付费QQ群: 1055927514*----
# spacestring
[](https://travis-ci.org/chai2010/spacestring)
[](https://goreportcard.com/report/github.com/chai2010/spacestring)
[](https://godoc.org/github.com/chai2010/spacestring)
[](https://github.com/chai2010/spacestring/blob/master/LICENSE)- https://godoc.org/github.com/chai2010/spacestring
- spacestring contains more than 1 space characters
- empty string is not spacestring
- `^\s+$`is space string## Example
```go
package mainimport (
"fmt""github.com/chai2010/spacestring"
)func main() {
// space string contains more than 1 space characters
fmt.Println(spacestring.IsSpace(" "))
fmt.Println(spacestring.IsSpace(" \t\n\r"))// empty string is not space string
fmt.Println(spacestring.IsSpace(""))// non space string is not space string
fmt.Println(spacestring.IsSpace(" abc "))// Output:
// true
// true
// false
// false
}
```## BUGS
Report bugs to .
Thanks!