remote

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remote

type Remote struct {
	Versions []Version
	// contains filtered or unexported fields
}

Remote helps instrument downloads

func (*Remote) GetVersion

func (r *Remote) GetVersion(release string) (Version, error)

GetVersion returns selected version

func (*Remote) LatestVersion

func (r *Remote) LatestVersion() Version

LatestVersion returns current stable version

func (*Remote) Update

func (r *Remote) Update()

Update fetches and updates version's for current GOOS and GOARCH

type Version

type Version struct {
	Release string
	// contains filtered or unexported fields
}

Version holds status about Golang download

func (*Version) Compatible

func (v *Version) Compatible() bool

Compatible filter for compatible versions

func (*Version) Setup

func (v *Version) Setup(rootDir string) error

Setup download selected version to target dir and unpacks it

func (*Version) String

func (v *Version) String() string

String interfacer for Version struct

Jump to

Keyboard shortcuts

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