Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chai2010/spacestring
space string contains more than 1 space characters
https://github.com/chai2010/spacestring
Last synced: 3 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-31T14:57:18.000Z (almost 5 years ago)
- Last Synced: 2024-10-06T01:18:18.476Z (3 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
[![Build Status](https://travis-ci.org/chai2010/spacestring.svg)](https://travis-ci.org/chai2010/spacestring)
[![Go Report Card](https://goreportcard.com/badge/github.com/chai2010/spacestring)](https://goreportcard.com/report/github.com/chai2010/spacestring)
[![GoDoc](https://godoc.org/github.com/chai2010/spacestring?status.svg)](https://godoc.org/github.com/chai2010/spacestring)
[![License](http://img.shields.io/badge/license-BSD-blue.svg)](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!