github.com/Code-Hex/updater

check update for cli tools you created


License
MIT
Install
go get github.com/Code-Hex/updater

Documentation

updater - check update for cli tools you created

Go Report Card MIT License

Installation

$ go get github.com/Code-Hex/updater

Synopsis

updater.Check...(Your organization, Your project name, now version...)

Example

CheckWithTag using release tag

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

result, err := updater.CheckWithTitle("Code-Hex", "pget", "0.0.1")

Check using key of json from github api

result, err := updater.Check("Code-Hex", "pget", "0.0.1", "keyname")

Author

codehex