Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheTransport ¶
func CacheTransport(tripper http.RoundTripper, cache httpcache.Cache) http.RoundTripper
Types ¶
type Updater ¶
type Updater struct { CacheDir string HTTPClient *http.Client Output io.Writer Timeout time.Duration // contains filtered or unexported fields }
func (*Updater) CheckForNewVersion ¶
CheckForNewVersion does a simple check once (within the Updater.Timeout timeframe) for new version available and display a warning if a new version is found.
Click to show internal directories.
Click to hide internal directories.