versions

package
v0.0.0-...-165f8d8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(versions []string, ver string) bool

Find checks whether ver is in the versions. TODO: support partial match

func Local

func Local(baseDir string) ([]string, error)

Local get all installed versions which locate at baseDir. e.g. <baseDir>/{3.6.3, 3.5.4}

func Print

func Print(versions []string, inuseVersion string)

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(apiURL, versionPrefix string) *Collector

func (*Collector) Remote

func (c *Collector) Remote() ([]string, error)

Jump to

Keyboard shortcuts

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