version

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2022 License: BSD-3-Clause Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteVersions

type RemoteVersions []*version.Version

func (*RemoteVersions) Earliest

func (r *RemoteVersions) Earliest() *version.Version

func (*RemoteVersions) Latest

func (r *RemoteVersions) Latest() *version.Version

type Versions

type Versions struct {
	RunningVersion *version.Version
	RemoteVersions RemoteVersions
}

func NewVersions

func NewVersions(running string, remotes []string) (*Versions, error)

func (*Versions) Earliest

func (v *Versions) Earliest() *version.Version

func (*Versions) GetRunningVersion

func (v *Versions) GetRunningVersion() *version.Version

func (*Versions) GreaterThan

func (v *Versions) GreaterThan() *Versions

func (*Versions) LastMajorsGreaterThan

func (v *Versions) LastMajorsGreaterThan() *Versions

Only returns last available majors greater than running version

func (*Versions) Latest

func (v *Versions) Latest() *version.Version

func (*Versions) MajorAvailable

func (v *Versions) MajorAvailable() bool

func (*Versions) MinorAvailable

func (v *Versions) MinorAvailable() bool

func (*Versions) MinorsGreaterThan

func (v *Versions) MinorsGreaterThan() *Versions

func (*Versions) PatchAvailable

func (v *Versions) PatchAvailable() bool

func (*Versions) PatchesGreaterThan

func (v *Versions) PatchesGreaterThan() *Versions

func (*Versions) SetRemoteVersions

func (v *Versions) SetRemoteVersions(remotes []string) error

func (*Versions) SetRunningVersion

func (v *Versions) SetRunningVersion(ver string) error

func (*Versions) StringList

func (v *Versions) StringList() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL