Versions in this module Expand all Collapse all v1 v1.0.1 Mar 27, 2020 v1.0.0 Mar 27, 2020 Changes in this version + var ErrHashMismatch = errors.New("new file hash mismatch after patch") + type HTTPRequester struct + func (httpRequester *HTTPRequester) Fetch(url string) (io.ReadCloser, error) + type Requester interface + Fetch func(url string) (io.ReadCloser, error) + type Updater struct + ApiURL string + BinURL string + CmdName string + CurrentVersion string + DiffURL string + Goarch string + Goos string + Info struct{ ... } + Requester Requester + TargetBinPath string + func (u *Updater) BackgroundRun() error + func (u *Updater) FetchInfo() error + func (u *Updater) UpdateTargetBinary() error