Documentation ¶ Index ¶ func VersionCompare(a *Version, b *Version) int type Version func NewVersion(head int64, middle int64, tail int64) *Version func StrToVersion(vstr string) (*Version, error) func (v *Version) ToString() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func VersionCompare ¶ func VersionCompare(a *Version, b *Version) int a>b return 1 , a==b return 0 , a<b return -1 Types ¶ type Version ¶ type Version struct { // contains filtered or unexported fields } func NewVersion ¶ func NewVersion(head int64, middle int64, tail int64) *Version func StrToVersion ¶ func StrToVersion(vstr string) (*Version, error) func (*Version) ToString ¶ func (v *Version) ToString() string Source Files ¶ View all Source files version.go Click to show internal directories. Click to hide internal directories.