Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ferhatelmas/go-archive

Check if a given path is an archive
https://github.com/ferhatelmas/go-archive

Last synced: 26 days ago
JSON representation

Check if a given path is an archive

Awesome Lists containing this project

README

        

## go-archive

[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/ferhatelmas/go-archive)
[![Build Status](https://travis-ci.org/ferhatelmas/go-archive.png?branch=master)](https://travis-ci.org/ferhatelmas/go-archive)

> Check if a filepath is an archive file.

### Install

```
go get github.com/ferhatelmas/go-archive
```

### Usage

```go
import "github.com/ferhatelmas/go-archive"

archive.Is("src/unicorn.zip")
//=> true

archive.Is("src/unicorn.txt")
//=> false
```

### License

MIT © [ferhat elmas](http://ferhatelmas.com)