Documentation
¶
Index ¶
- Variables
- func DownloadGo(version, targetOS, arch string) error
- func ExtractGoVersion(content string) string
- func GetCurrentVersion(filePath, directVersion string) (string, error)
- func GetLatestVersion() (string, error)
- func IsNewer(latest, current string) bool
- func ReadVersionFromFile(filePath string) (string, error)
- type GoRelease
Constants ¶
This section is empty.
Variables ¶
View Source
var CalculateFileChecksum = calculateFileChecksum
View Source
var DownloadFile = downloadFile
View Source
var DownloadURLFormat = "https://dl.google.com/go/go%s.%s-%s.%s"
View Source
var GetOfficialChecksum = getOfficialChecksum
View Source
var NewProgressBar = progressbar.NewOptions64
View Source
var OsRemove = os.Remove
View Source
var RuntimeGOARCH = runtime.GOARCH
View Source
var RuntimeGOOS = runtime.GOOS
View Source
var URL = "https://go.dev/dl/?mode=json"
View Source
var VersionURL = "https://go.dev/VERSION?m=text"
Functions ¶
func DownloadGo ¶
func ExtractGoVersion ¶
func GetCurrentVersion ¶
func GetLatestVersion ¶
func ReadVersionFromFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.