Skip to content
/ release Public
generated from gleich/go_template

๐Ÿ“ฆ go package to check for a new GitHub release

License

Notifications You must be signed in to change notification settings

gleich/release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

release

๐Ÿ“ฆ go package to check for a new GitHub release

build test lint release

๐Ÿš€ Install

Simply run the following in the root of your project directory:

go get -u github.com/gleich/release

๐Ÿ“„ Documentation GoDoc

func Check

func Check(currentVersion string, repoURL string) (bool, string, error)

Check for an update. Takes in the current version and GitHub repo URL. Returns true or false if there is an update or not as well as the version value. Will return false if there is no network connection.

Example

package main

import "github.com/gleich/release"

func main() {
    isOutdated, version, err := release.Check("v1.0.0", "https://github.com/gleich/nuke/")
}

๐Ÿ™Œ Contributing

Before contributing please read the CONTRIBUTING.md file

๐Ÿ‘ฅ Contributors

About

๐Ÿ“ฆ go package to check for a new GitHub release

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published