Documentation
¶
Index ¶
- Variables
- func ExistsFS(target string) bool
- func HTTPGet(ctx context.Context, url string) ([]byte, error)
- func HTTPHead(ctx context.Context, url string) error
- func HTTPMirror(ctx context.Context, url string, targetFile string, ...) error
- func Untar(tarball string, targetDir string) error
- func UntarStrip(tarball string, targetDir string, strip int) error
- type GitHub
- type Go
- type Java
- type Language
- func (l *Language) Init() error
- func (l *Language) Install(ctx context.Context, version string) (string, error)
- func (l *Language) Latest(ctx context.Context) (string, error)
- func (l *Language) List(ctx context.Context, all bool) ([]string, error)
- func (l *Language) Rehash() error
- func (l *Language) Reset(version string) error
- func (l *Language) SetVersion(version string) error
- func (l *Language) Specific() Specific
- func (l *Language) Version() (string, error)
- func (l *Language) Versions() ([]string, error)
- type Node
- type OSArch
- type Perl
- type Python
- func (Python) BinDirs() []string
- func (p *Python) Install(ctx context.Context, version string) (string, error)
- func (p *Python) Latest(ctx context.Context) (string, error)
- func (p *Python) List(ctx context.Context, all bool) ([]string, error)
- func (Python) Untar(tarball string, targetDir string) error
- type Raku
- type Ruby
- type Solr
- type Specific
Constants ¶
This section is empty.
Variables ¶
View Source
var All = []string{
"go",
"java",
"node",
"perl",
"python",
"raku",
"ruby",
"solr",
}
Functions ¶
func HTTPMirror ¶
Types ¶
type Language ¶
func (*Language) Rehash ¶
Symlinks may not work with `exec "$(dirname "$0")"/perl -x "$0" "$@"` notation So we use shell scripts instead
func (*Language) SetVersion ¶
type Python ¶
type Python struct {
Root string
// contains filtered or unexported fields
}
type Raku ¶ added in v0.0.8
type Raku struct {
Root string
// contains filtered or unexported fields
}
type Ruby ¶ added in v0.0.10
type Ruby struct {
Root string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.