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.
- Host: GitHub
- URL: https://github.com/xlab/gitio
- Owner: xlab
- License: mit
- Created: 2015-08-07T15:01:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-26T18:46:42.000Z (over 10 years ago)
- Last Synced: 2025-03-26T09:11:07.523Z (over 1 year ago)
- Language: Go
- Size: 6.84 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## gitio [](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)