Documentation ¶
Index ¶
- Constants
- func CompletionMakeTarget(shell, autocompleteDir string) string
- func GitHash(info *debug.BuildInfo) string
- func GoVersion(info *debug.BuildInfo) string
- type Archiver
- type Asset
- type BuildInfo
- type Completion
- type CompletionGenerator
- type Content
- type Download
- type Install
- type List
- type ListBucketResult
- type ListReleasesErrorResp
- type ListReleasesResult
- type ListRemote
- type Release
- type Update
- type Version
Constants ¶
View Source
const ( ShellBash = "bash" ShellZsh = "zsh" ShellFish = "fish" )
View Source
const ( BuildTimeUnknown = "unknown" GitTagDefault = "dev" )
Variables ¶
This section is empty.
Functions ¶
func CompletionMakeTarget ¶
CompletionMakeTarget creates the file and it's parent directories where the completion output can be written to.
Types ¶
type Completion ¶
type Completion struct { AutocompleteDir string BashSymlinkDir string FishSymlinkDir string FS fs.FS CompletionGenerator HomeDir string ZshSymlinkDir string }
Completion generates completion files for zsh/bash/fish shell.
type CompletionGenerator ¶
type CompletionGenerator interface { GenBashCompletion(io.Writer) error GenFishCompletion(out io.Writer, includeDesc bool) error GenZshCompletion(io.Writer) error }
Generator controls how the completion files should be generated
type Download ¶
type Download struct { Dl *downloader.Downloader Timeout time.Duration }
Download downloads go binaries
type Install ¶
type Install struct { Archiver Archiver Dl *downloader.Downloader Timeout time.Duration }
type ListBucketResult ¶
type ListBucketResult struct { XMLNAME xml.Name `xml:"ListBucketResult"` NextMarker string Contents []Content `xml:"Contents"` IsTruncated bool }
ListBucketResult represents the list of objects result
type ListReleasesErrorResp ¶
type ListReleasesResult ¶
type ListReleasesResult []Release
type ListRemote ¶
ListRemote lists remote versions available for install
type Update ¶
Update checks for if there are updates available for Godl
func (*Update) CheckForUpdate ¶
type Version ¶ added in v0.19.0
type Version struct {
// contains filtered or unexported fields
}
Version represents the version information of the binary.
func NewVersion ¶ added in v0.19.0
Click to show internal directories.
Click to hide internal directories.