rclone: github.com/ncw/rclone/fs/version Index | Files

package version

import "github.com/ncw/rclone/fs/version"

Index

Package Files

version.go

type Version Uses

type Version []int

Version represents a parsed rclone version number

func New Uses

func New(in string) (v Version, err error)

New parses a version number from a string

This will be returned with up to 4 elements for major, minor, patch, subpatch release.

If the version number represents a compiled from git version number, then it will be returned as major, minor, 999, 999

func (Version) Cmp Uses

func (v Version) Cmp(o Version) (d int)

Cmp compares two versions returning >0, <0 or 0

func (Version) IsGit Uses

func (v Version) IsGit() bool

IsGit returns true if the current version was compiled from git

func (Version) String Uses

func (v Version) String() string

String converts v to a string

Package version imports 6 packages (graph) and is imported by 4 packages. Updated 2018-11-10. Refresh now. Tools for package owners.