internal

package
v0.0.0-...-13e621f Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearFunc

func ClearFunc(home string, n int)

func GetFunc

func GetFunc(client Client, home string, versions []string)

func GoFileName

func GoFileName(version string) string

func Infof

func Infof(msg string, p ...interface{})

func Infoln

func Infoln(m ...interface{})

func InstallFunc

func InstallFunc(root string, home string, version string, client Client)

func ListFunc

func ListFunc(home string)

func Verbosef

func Verbosef(msg string, p ...interface{})

func Verboseln

func Verboseln(m ...interface{})

func ZipFilePath

func ZipFilePath(home, version string) string

Types

type Client

type Client interface {
	GetLatestVersion() (string, bool)
	DownloadFile(filepath string, url string) error
}

func NewClient

func NewClient() Client

type Command

type Command struct {
	*flag.FlagSet
	// contains filtered or unexported fields
}
var Clear Command
var Get Command
var Install Command
var List Command

type Commands

type Commands []Command

func (Commands) ParseAndRun

func (commands Commands) ParseAndRun(args []string)

type WriteCounter

type WriteCounter struct {
	Total        uint64
	HeaderLength string
}

func (*WriteCounter) Write

func (wc *WriteCounter) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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