Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersion ¶
CompareVersion 比较版本号 返回: 1 表示 v1 > v2, -1 表示 v1 < v2, 0 表示相等
Types ¶
type VersionInfo ¶
type VersionInfo struct {
Version string `json:"version"`
ReleaseDate string `json:"release_date"`
DownloadURL string `json:"download_url"`
Changelog string `json:"changelog"`
}
VersionInfo 版本信息
func IsNeedUpdate ¶
func IsNeedUpdate(currentVersion string) (bool, VersionInfo)
IsNeedUpdate 检查是否需要更新
Click to show internal directories.
Click to hide internal directories.