release

package module
v0.0.0-...-e6924af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2021 License: MIT Imports: 5 Imported by: 0

README ¶

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

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func Check ¶

func Check(localVersion 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.

Types ¶

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL