Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchArchive ¶
Types ¶
type Data ¶
type Data struct {
Repository Repository `json:"repository"`
}
type HTTPClient ¶
HTTPClient defines the client inerface for test mocks
var Client HTTPClient
Client is an HTTPClient, defined here to enable mocking
type QueryResult ¶
type QueryResult struct {
Data Data `json:"data"`
}
type Report ¶
func BuildReport ¶
BuildReport is the primary runner for the application. It compiles all information needed to select a golang install package, based on current os, architecture, and the go version from go.mod. Then it downloads the selected file and installs it into a shim directory, modifies the PATH for the current process, and prints a message for the user to suggest a PATH export to add to the shell profile
type Repository ¶
type Repository struct {
Refs Refs `json:"refs"`
}
Click to show internal directories.
Click to hide internal directories.