Skip to content

Code-Hex/updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

check update for cli tools you created

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages