Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidVersion = errors.New("invalid version")
Functions ¶
func CurrentVersion ¶
func GetGoVersions ¶
Types ¶
type Manager ¶
type Manager struct { // Base is the base directory of all other paths. Base string // GoDir is the directory name of the Go installation relative to Base. GoDir string VersionsDir string BuildCacheDir string VersionFile string }
func NewDefaultManager ¶
func NewDefaultManager() Manager
func (*Manager) Installation ¶
func (*Manager) List ¶
func (m *Manager) List() (VersionList, error)
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func ParseVersion ¶
func ReadVersionFile ¶
type VersionList ¶
type VersionList []Version
VersionList is a sortable list of semantic version numbers.
func (VersionList) Len ¶
func (vl VersionList) Len() int
func (VersionList) Less ¶
func (vl VersionList) Less(i, j int) bool
func (VersionList) Swap ¶
func (vl VersionList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.