Documentation ¶
Overview ¶
Package version provides functions for working with versions
Index ¶
Constants ¶
View Source
const ( // Asc sorts in the ascending direction SortAsc = "asc" // Desc sorts in the descending direction SortDesc = "desc" )
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶
func CompareVersions(left, right *go_version.Version, d string) bool
func GetVersion ¶
func GetVersion(s string) *go_version.Version
GetVersion returns the version from the given string. go1.11.4.darwin-amd64.tar.gz => 1.11.4
func Segments ¶
func Segments(v *go_version.Version) *go_version.Version
Segments returns a new version which is just the numeric segments of v.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.