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

https://github.com/xlab/gitio

A git.io client for Go, also a CLI utility.
https://github.com/xlab/gitio

Last synced: about 1 year ago
JSON representation

A git.io client for Go, also a CLI utility.

Awesome Lists containing this project

README

          

## gitio [![GoDoc](https://godoc.org/github.com/xlab/gitio?status.svg)](https://godoc.org/github.com/xlab/gitio)

This is a Go client for [git.io](https://git.io).

Read more about git.io [here](https://github.com/blog/985-git-io-github-url-shortener).

### Installation
```
$ go get github.com/xlab/gitio/...
```
Or grab a binary in the [Releases](https://github.com/xlab/gitio/releases) section.

### Usage
```
$ gitio -h
Usage: gitio
-c, --code="" A custom code for the short link, e.g. https://git.io/mycode
-f, --force=false Try to shorten link even if the custom code has been used previously.

$ gitio -c gitio.go https://github.com/xlab/gitio/blob/master/gitio.go
https://git.io/gitio.go
```

### License

[MIT](http://xlab.mit-license.org)