Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 main

import (
"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!