Skip to content

TNK-Studio/release

Β 
Β 

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/Matt-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/Matt-Gleich/release"

func main() {
    isOutdated, version, err := release.Check("v1.0.0", "https://github.com/Matt-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

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 61.5%
  • Dockerfile 22.2%
  • Makefile 16.3%