Documentation ¶
Index ¶
- Constants
- Variables
- func AlreadyCompiled(ver string) bool
- func AvailableBinaries() []string
- func AvailableDownloads() []string
- func AvailableSources() []string
- func CacheDirectory() string
- func CacheDownload(ver string, f ...bool) error
- func CacheDownloadBinary(ver string, f ...bool) error
- func CacheDownloadGit(ver string, f ...bool) error
- func CheckManifestIntegrity(manifestName string) error
- func Checksum(version string) (string, error)
- func Compile(ver string, verbose, nocgo bool, boostrap ...string) error
- func Exists(ver string) bool
- func ExpandUser(path string) string
- func GetBinaryVersion(version string) string
- func GetInstalled(tags, sources, binaries []string) ([]string, error)
- func GetNonInstalled(v, tags, sources, binaries []string) []string
- func GitExists() bool
- func MercurialExists() bool
- func SourceExists(ver string) (bool, error)
- func Tags() []string
Constants ¶
const REPO = "https://github.com/golang/go.git"
Variables ¶
var Output io.Writer = os.Stdout
var TARGET = filepath.Join(CacheDirectory(), "git")
var VenGO_PATH = filepath.Join(ExpandUser("~"), ".VenGO")
Functions ¶
func AlreadyCompiled ¶
determine if a Go version has been already compiled in the cache
func AvailableBinaries ¶
func AvailableBinaries() []string
return back the list of donwloadable binaries
func AvailableDownloads ¶
func AvailableDownloads() []string
return back all the available donwloads
func AvailableSources ¶
func AvailableSources() []string
return back the list of downloaable sources
func CacheDirectory ¶
func CacheDirectory() string
Return the CacheDirectory for not darwin Unix. By default it is ~/.cache/VenGO. On Linux, if the environemnt variable XDG_CACHE_HOME exists it will be XDG_CACHE_HOME/VenGO
func CacheDownload ¶
Download an specific version of Golang source code
func CacheDownloadBinary ¶
Download an specific version of Golang binary files
func CacheDownloadGit ¶ added in v1.1.1
Download git repository and clone the given version
func CheckManifestIntegrity ¶
checks a manifest integrity
func Checksum ¶
check if a given version is supported by VenGO to auto donwload/compile if the version is valid, it returns it's SHA1 fingerprint, error is returned otherwise
func ExpandUser ¶
Expand the user home tilde to the right user home path
func GetBinaryVersion ¶
return back the binary string version for downloads in GNU/Linux
func GetInstalled ¶
return a list of installed go versions
func GetNonInstalled ¶
return a list of non installed go versions
func MercurialExists ¶
func MercurialExists() bool
func SourceExists ¶
Types ¶
This section is empty.