Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareStrings ¶
0 = equal, 1 = greater, -1 = smaller "1.2.3", "1.2.3" => 0 "1.2.3", "1.1" => -1 "1.2.3", "1.3" => 1 "1.2.3", "1.2.4" => 1 "1.2.3", "1.2.2" => -1 "1.2.3", "1.2.2.2" => -1 "1.2.3", "1.2.3.0.0" => 0 "1.2.3", "1.2.3.2" => 1 "1.2.3", "1.2.3.2.4" => 1
func CompareVersions ¶
0 = equal, 1 = greater, -1 = smaller "1.2.3", "1.2.3" => 0 "1.2.3", "1.1" => -1 "1.2.3", "1.3" => 1 "1.2.3", "1.2.4" => 1 "1.2.3", "1.2.2" => -1 "1.2.3", "1.2.2.2" => -1 "1.2.3", "1.2.3.0.0" => 0 "1.2.3", "1.2.3.2" => 1 "1.2.3", "1.2.3.2.4" => 1
func MaxVersion ¶
func MaxVersionString ¶
func ParseVersionString ¶
"1.02.3." => []int{1, 2, 3} "1.2..3" => []int{1, 2, 3} "1.00.2" => []int{1, 0, 2}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.