Versions in this module Expand all Collapse all v0 v0.1.1 Feb 12, 2022 Changes in this version + var ErrNeedInstall = errors.New("detected deb/rpm/apk package, download directly") + var ErrNoBin = errors.New("binary file not found") v0.1.0 Feb 11, 2022 Changes in this version + const ARCH + const OS + var NeedInstallError = errors.New("detected deb/rpm/apk package, download directly") + var NoBinError = errors.New("binary file not found") + type APIReleaseAsset struct + DownloadUrl string + Name string + Size int + type APIReleaseResp struct + Assets []APIReleaseAsset + type GHRelease struct + RepoPath string + TagName string + func (gr GHRelease) GetGHReleases() (*GHReleaseDl, error) + type GHReleaseDl struct + BinaryName string + Size int64 + Url string + func (GHReleaseDl) UnGzBinary(r *os.File) (*gzip.Reader, error) + func (dl *GHReleaseDl) DlTo(path string) (err error) + func (dl GHReleaseDl) ExtractBinary() error + func (dl GHReleaseDl) UnTargzBinary(r *os.File) (*tar.Reader, error) + func (dl GHReleaseDl) UnZipBinary(r *os.File) (*zip.File, error)