Skip to content

joshuabezaleel/latest-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

latest-version

Determine the latest available version of a module from proxy.golang.org. Useful for tools that plan to check available upgrades.

Installation

$ go get github.com/joshuabezaleel/latest-version

Usage

import (
    latestver "github.com/joshuabezaleel/latest-version
)

func main() {
    latestVersion, _ := latestver.LatestVersion("github.com/hashicorp/raft")
    log.Println(latestVersion)
    // 1.1.2
}

Prior Art

Highly inspired by sindesorhus' latest-version

License

MIT License

About

Get the latest version of a Go module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages