Documentation
¶
Index ¶
Constants ¶
View Source
const (
SHA256SUMS = "SHA256SUMS"
)
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
DownloadFile 以 "已下载 XMB/YMB (Z%)" 格式显示进度
func Update ¶
func Update(opt UpdateOption) error
Types ¶
type FetchError ¶
func (*FetchError) Error ¶
func (e *FetchError) Error() string
type ProgressReader ¶
ProgressReader 计算下载进度
type ReleaseInfo ¶
type UpdateAsset ¶
func FindUpdateAsset ¶
func FindUpdateAsset(info UpdateInfo) *UpdateAsset
type UpdateInfo ¶
type UpdateInfo struct {
Tag string
Body string
Note string
Assets []UpdateAsset
}
func CheckForUpdate ¶
func CheckForUpdate(duration time.Duration) (*UpdateInfo, error)
Click to show internal directories.
Click to hide internal directories.