Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ferhatelmas/go-text
Check if a given path is a text file
https://github.com/ferhatelmas/go-text
Last synced: 26 days 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T10:42:37.000Z (over 9 years ago)
- Last Synced: 2023-03-23T01:42:03.054Z (over 1 year ago)
- Language: Go
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
## go-text
[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/ferhatelmas/go-text)
[![Build Status](https://travis-ci.org/ferhatelmas/go-text.png?branch=master)](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)