Documentation ¶
Overview ¶
Package gobin implements retrieving, downloading, and running go binaries using a remote path and version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Module ¶
type Module struct { // The unmodified/parsed import path, includes the command, if present OriginalImport string // Path is the module path Path string // Repo is a full VCS url that can be used to download this module Repo string // Version is a git ref that this correlates to (generally @vx.x.x) Version string // contains filtered or unexported fields }
Module represents a Go module.
func (*Module) GetBinaryCache ¶
GetBinaryCache returns the path that a binary should located, if it's been built before
func (*Module) GetCommandPath ¶
GetCommandPath attempts to resolve the directory for building from source from a import path. This handles removal of major versions.
Click to show internal directories.
Click to hide internal directories.