utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func DeleteVersion added in v0.0.2

func DeleteVersion(version GoVersion) tea.Cmd

func DownloadAndInstall

func DownloadAndInstall(version GoVersion) tea.Cmd

func FetchGoVersions

func FetchGoVersions() tea.Msg

func GetCurrentGoVersion

func GetCurrentGoVersion() string

func GetShimPathInstructions

func GetShimPathInstructions() string

func GetVersion added in v0.0.2

func GetVersion() string

func IsShimInPath

func IsShimInPath() bool

Check if user has shim

func SetupShimDirectory

func SetupShimDirectory() error

func SwitchVersion

func SwitchVersion(version GoVersion) tea.Cmd

Types

type DeleteCompleteMsg added in v0.0.2

type DeleteCompleteMsg struct {
	Version string
}

type DownloadCompleteMsg

type DownloadCompleteMsg struct {
	Version string
	Path    string
}

type ErrMsg

type ErrMsg error

type GoVersion

type GoVersion struct {
	Version   string
	Filename  string
	URL       string
	Installed bool
	Active    bool
	Path      string
	Stable    bool
}

type SwitchCompletedMsg

type SwitchCompletedMsg struct {
	Version    string
	ShimInPath bool
}

type VersionsMsg

type VersionsMsg []GoVersion

Jump to

Keyboard shortcuts

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