updater

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

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

Go to latest
Published: Jul 12, 2016 License: MIT Imports: 5 Imported by: 7

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(organizer, project, now, key string) (string, error)

Check using key

func CheckWithTag

func CheckWithTag(organizer, project, now string) (string, error)

CheckWithTag using release tag

func CheckWithTitle

func CheckWithTitle(organizer, project, now string) (string, error)

CheckWithTitle using release title

Types

This section is empty.

Jump to

Keyboard shortcuts

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