Documentation ¶ Index ¶ type Binary func New() (binary Binary, err error) func (b *Binary) CleanUp() error func (b *Binary) Download(target string) error func (b *Binary) Find(paths ...string) (file.File, error) func (b Binary) Latest() (string, error) func (b Binary) MatchTarget(version string) (string, error) type Env func (e *Env) Append(env Env) func (e *Env) Default(dir string) func (e Env) ToSlice() []string type Installer func (i *Installer) Install(path string) (output string, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Binary ¶ type Binary struct { File file.File Dir file.Folder Env Env } func New ¶ func New() (binary Binary, err error) func (*Binary) CleanUp ¶ func (b *Binary) CleanUp() error func (*Binary) Download ¶ func (b *Binary) Download(target string) error func (*Binary) Find ¶ func (b *Binary) Find(paths ...string) (file.File, error) func (Binary) Latest ¶ func (b Binary) Latest() (string, error) func (Binary) MatchTarget ¶ func (b Binary) MatchTarget(version string) (string, error) type Env ¶ type Env map[string]string func (*Env) Append ¶ func (e *Env) Append(env Env) func (*Env) Default ¶ func (e *Env) Default(dir string) func (Env) ToSlice ¶ func (e Env) ToSlice() []string type Installer ¶ type Installer struct { Binary Binary } func (*Installer) Install ¶ func (i *Installer) Install(path string) (output string, err error) Source Files ¶ View all Source files binary.goenv.goinstaller.go Click to show internal directories. Click to hide internal directories.