https://github.com/ferhatelmas/go-text
Check if a given path is a text file
https://github.com/ferhatelmas/go-text
Last synced: 2 months ago
JSON representation
Check if a given path is a text file
- Host: GitHub
- URL: https://github.com/ferhatelmas/go-text
- Owner: ferhatelmas
- License: mit
- Created: 2015-06-05T10:40:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T10:42:37.000Z (almost 10 years ago)
- Last Synced: 2025-01-24T12:13:45.636Z (4 months ago)
- Language: Go
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
## go-text
[](https://godoc.org/github.com/ferhatelmas/go-text)
[](https://travis-ci.org/ferhatelmas/go-text)> Check if a filepath is a text file.
### Install
```
go get github.com/ferhatelmas/go-text
```### Usage
```go
import "github.com/ferhatelmas/go-text"text.Is("src/unicorn.go")
//=> truetext.Is("src/unicorn.exe")
//=> false
```### License
MIT © [ferhat elmas](http://ferhatelmas.com)