package
Version:
v1.0.14
Opens a new window with list of versions in this module.
Published: Sep 11, 2017
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
List is a slice of Versions that implements sort.Interface
Len implements sort.Interface.Len()
Less implements sort.Interface.Less()
Swap implements sort.Interface.Swap()
type Version struct {
Major int
Minor int
Patch int
}
A Version is a version of the form <major>.<minor>.<patch>
FromString returns a Version based on a string
Make Builds a Version from major, minor, patch
String formats Version as <major>.<minor>.<patch>
Source Files
¶
Click to show internal directories.
Click to hide internal directories.