Registry / utility / tcnksm-go-latest

tcnksm-go-latest

JSON →
library0.0.0-20170313132115-e3007ae9052egogounverified

Package go-latest checks if a provided version is the latest from various sources like GitHub releases.

go get github.com/tcnksm/go-latest
INSTALL
IMPORT
SIG · TCNKSM-GO-LATEST
T
tcnksm-go-latest
utilitygov0.0.0-20170313132115-e3007ae9052e
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

latest
github.com/tcnksm/go-latest

Checks if a given version is the latest for a GitHub repository and prints the result.

package main import ( "fmt" "github.com/tcnksm/go-latest" ) func main() { checker := latest.Github{ Owner: "tcnksm", Repo: "go-latest", } res, err := checker.Check("0.0.1") if err != nil { panic(err) } fmt.Println(res.Latest) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170313132115-e3007ae9052elatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Amazon
1
Resources
tcnksm-go-latest — go get tcnksm-go-latest · libregistry