https://github.com/code-hex/updater
check update for cli tools you created
https://github.com/code-hex/updater
Last synced: 5 months ago
JSON representation
check update for cli tools you created
- Host: GitHub
- URL: https://github.com/code-hex/updater
- Owner: Code-Hex
- License: mit
- Created: 2016-07-12T04:20:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-12T08:51:21.000Z (over 9 years ago)
- Last Synced: 2025-07-24T16:23:37.873Z (6 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
updater - check update for cli tools you created
=======
[](http://godoc.org/github.com/Code-Hex/updater)
[](https://goreportcard.com/report/github.com/Code-Hex/updater)
[](LICENSE)
## Installation
$ go get github.com/Code-Hex/updater
## Synopsis
updater.Check...(Your organization, Your project name, now version...)
## Example
CheckWithTag using release tag
```Go
import "github.com/Code-Hex/updater"
func main() {
result, err := updater.CheckWithTag("Code-Hex", "pget", "0.0.1")
if err != nil {
fmt.Println(err.Error())
}
fmt.Println(result)
}
```
CheckWithTitle using release title
```Go
result, err := updater.CheckWithTitle("Code-Hex", "pget", "0.0.1")
```
Check using key of json from github api
```Go
result, err := updater.Check("Code-Hex", "pget", "0.0.1", "keyname")
```
## Author
[codehex](https://twitter.com/CodeHex)