Categorygithub.com/code-hex/updater
modulepackage
0.0.0-20160712085121-c3f278672520
Repository: https://github.com/code-hex/updater.git
Documentation: pkg.go.dev

# README

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

# Functions

Check using key.
CheckWithTag using release tag.
CheckWithTitle using release title.