Documentation ¶
Index ¶
- func CompareVersions(c, l string) (bool, error)
- func Download(p *prompt.Prompt, filename, version string) error
- func GetExecutableDir() (string, error)
- func GetLatestVersion() (string, error)
- func GetPlatformArchiveName() (string, error)
- func ReplaceBinary(binDir string) error
- func Unpack(file string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶ added in v0.2.0
CompareVersions compares the current and the latest versions
func GetExecutableDir ¶ added in v0.5.0
GetExecutableDir returns the directory from which the binary is running
func GetLatestVersion ¶
GetLatestVersion fetches the latest application's version from the github repository
func GetPlatformArchiveName ¶
GetPlatformArchiveName retrieves the zip filename for the current platform
func ReplaceBinary ¶
ReplaceBinary replaces the existing binary file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.